# Fraction calculator > How much is that in fractions? Add, subtract, multiply and divide fractions and mixed numbers, or turn a decimal into a fraction, with the answer in lowest terms. Free fraction calculator: add, subtract, multiply and divide fractions and mixed numbers, or turn a decimal into a fraction, with the answer and the steps. - Page: https://how.box/fraction/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/fraction/?m={m}&a={a}&o={o}&b={b}&x={x} - `m` (operate or decimal): Calculation: operate (a, o, b) or decimal (x). Example: `operate`. - `a` (text): First number for m=operate: whole number, fraction or mixed number. Example: `2/3`. - `o` (add, subtract, multiply or divide): For m=operate: add, subtract, multiply or divide. Example: `multiply`. - `b` (text): Second number for m=operate. Example: `3/5`. - `x` (text): The decimal for m=decimal. Example: `0.25`. Example answer: https://how.box/fraction/?m=operate&a=2%2F3&o=multiply&b=3%2F5&x=0.25 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `fraction_calculate`: Exact fraction arithmetic. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fraction_calculate","arguments":{"mode":"operate","a":"2/3","operation":"multiply","b":"3/5","decimal":"0.25"}}}` - GET: https://how.box/mcp/run/fraction_calculate?mode=operate&a=2%2F3&operation=multiply&b=3%2F5&decimal=0.25 ## How it works A fraction a/b is a parts out of b equal parts of a whole. To add or subtract, the parts must be the same size, so a/b ± c/d = (a×d ± c×b) / (b×d). To multiply, multiply the tops and the bottoms: a/b × c/d = (a×c) / (b×d). To divide, multiply by the upside-down fraction: a/b ÷ c/d = (a×d) / (b×c). The result is shown in lowest terms: top and bottom are divided by their greatest common divisor, so 10/8 becomes 5/4. A mixed number such as 2 1/4 is a whole number plus a proper fraction, and 5/4 is the same amount as 1 1/4. For example, 1 1/2 + 3/4 is 3/2 + 3/4 = (3×4 + 3×2) / (2×4) = 18/8 = 9/4 = 2 1/4. A decimal is a fraction with a denominator of 10, 100, 1000 and so on: 0.375 is 375/1000 = 3/8. Many fractions have decimals that never end but repeat; 1/3 is 0.333… and 7/12 is 0.58333…, written here as 0.(3) and 0.58(3), with the repeating digits in parentheses. All arithmetic is exact, so there is no rounding in the fraction. ## FAQ **How do I add fractions with different denominators?** Give them a common denominator first. 1/2 + 1/3 = 3/6 + 2/6 = 5/6. The working line shows each step. **How do I write a mixed number?** Type the whole number, a space and the fraction: 2 1/4 means two and a quarter. A minus sign in front makes the whole number negative. **Why is dividing by a fraction the same as multiplying by its flip?** Dividing by 1/4 asks how many quarters fit, and each whole has four, so you multiply by 4. In general a ÷ (c/d) = a × (d/c). **Can I use a decimal as one of the numbers?** Not in the arithmetic. First turn it into a fraction with Decimal to fraction, then use that fraction. A fraction with 0 on the bottom or a division by zero is refused. **Can I type a repeating decimal such as 0.(3)?** No. Decimal input accepts terminating decimals only. Enter 1/3 in fraction mode for an exact third; 0.333 is a different, terminating value. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)