tooloora

Fraction Calculator — add, simplify & more

Adds, subtracts, multiplies, divides and simplifies fractions exactly in integers — with every step shown: common denominator, reducing, mixed numbers, decimal and percent form.

Runs locally — nothing is uploaded

Accepted: whole numbers (3), fractions (3/4), mixed numbers (2 1/2), decimals (0.75) and fraction characters like ½. The leading sign applies to the whole mixed number.

Examples:
1112
Result
As a decimal
0.91(6)
As a percentage
91.(6) %

The parentheses mark the repeating part: 0.8(3) stands for 0.8333… with the 3 repeating forever.

Step by step

  1. 3/4 + 1/6 = 9/12 + 2/12
    Common denominator 12: first fraction expanded by 3, second by 2.
  2. 9/12 + 2/12 = (9 + 2)/12 = 11/12
    Add the numerators; the denominator 12 stays.
  3. 11/12
    The fraction is already fully reduced.

Calculate fractions exactly — with every step written out

Pick an operation and enter fractions — as whole numbers, fractions like 3/4, mixed numbers like 2 1/2 or decimals like 0.75. The maths runs on integers instead of floating point: 1/3 + 1/3 + 1/3 is exactly 1. Below the result you get the full working — common denominator, reducing, mixed number.

How do I add fractions with different denominators?

Via the common denominator, the least common multiple of both denominators. For 3/4 + 1/6 the LCM of 4 and 6 is 12, so both fractions are expanded: 9/12 + 2/12 = 11/12. Those are exactly the lines the step list shows, including the factors used for expanding. If both fractions already share a denominator, the calculator says so instead of expanding needlessly. Subtraction works the same way, only the numerators are subtracted; multiplication is numerator times numerator, denominator times denominator. The whole working can be copied with one click — into a notebook or a message, for example.

Why does this fraction calculator not simply use decimals?

Because binary floating-point numbers store many fractions only approximately. JavaScript keeps numbers, as laid down by the ECMA-262 language standard, as 64-bit IEEE 754 floating-point values — and in that format 0.1 + 0.2 is not 0.3 but 0.30000000000000004 (source: ECMA-262, which defines the Number type as IEEE 754 double precision). So every fraction here stays a pair of integer numerator and denominator until the very end; only for display does a long division work out the decimal form. Repeating results are shown in copyable parentheses: 5/6 = 0.8(3). The result also names the mixed number and the value as a percentage.

What does the sign in −2 1/2 mean?

It applies to the whole mixed number: −2 1/2 means −(2 + 1/2) = −5/2 — not −2 + 1/2, which would be −3/2. That mix-up is a classic among fraction mistakes. So that nothing happens silently, the tool shows below the input field how it understood an entry: 2 1/2 becomes “read as 5/2”. Fraction characters such as ½ or ¾ and both decimal separators (comma and point) are read as well.

How do you divide by a fraction — and what happens with zero?

Dividing means multiplying by the reciprocal: 3/4 ÷ 2/5 becomes 3/4 · 5/2 = 15/8. The step list shows flipping the second fraction as its own step. Dividing by zero, on the other hand, is impossible — if the second fraction equals 0, a named error message appears instead of a result. A denominator of 0 is rejected at reading time already, because a fraction like 3/0 is undefined.

What are the limits of this calculator?

Numerator, denominator and the whole part may each be up to one trillion (10^12) per entry. Internally every calculation stays exact up to 2^53 − 1 — up to that bound, JavaScript represents every integer without error. If a product threatens to run past it, the calculator cross-reduces first and lists that step in the working; if even that is not enough, it reports an overflow instead of silently rounding. The decimal display works out up to 60 decimal places and honestly marks longer expansions as cut off.

Does my input stay private?

Yes. The entire calculation runs in your browser — no request leaves the page, and there is no server that could log what you type. Only your device stores anything: the last operation and entries, so the tool opens where you left off. Sharing still works — the entries live as parameters in the address bar, so a copied link shows the same calculation.

Frequently asked questions

How do I add fractions with different denominators?

Find the lowest common denominator (the LCM of both denominators), expand both fractions to it, add the numerators and reduce the result. Example: 3/4 + 1/6 — the LCM of 4 and 6 is 12, so 9/12 + 2/12 = 11/12. The calculator shows exactly these steps.

How do I fully simplify a fraction?

Divide numerator and denominator by their greatest common divisor (GCD). For 84/210 the GCD is 42, so 84/210 = 2/5. The simplify mode names the divisor it used, so you can check every step.

How are mixed numbers handled, and what does a minus sign mean?

A mixed number is converted to an improper fraction first: 2 1/2 becomes 5/2. The sign applies to the whole mixed number, so -2 1/2 means -(2 + 1/2) = -5/2 — not -2 + 1/2. Results are shown both ways.

Why is this more exact than a normal calculator?

Normal calculators use binary floating-point numbers (IEEE 754), where 0.1 + 0.2 gives 0.30000000000000004. This tool keeps every fraction as a pair of integers, so 1/3 + 1/3 + 1/3 is exactly 1, and repeating decimals like 5/6 = 0.8(3) are shown as repeating.

How large can numerator and denominator be?

Numerator, denominator and the whole part of a mixed number may each be up to one trillion (10^12). Internally everything stays exact up to 2^53 − 1; if a calculation would exceed that, the tool reports an overflow instead of silently rounding. The decimal display shows up to 60 decimal places and marks longer expansions as cut off.

Are my entries uploaded anywhere?

No. All calculations run in your browser — nothing is sent to a server. Your last mode and entries are stored locally on your device so the tool opens where you left it, and the address bar carries the entered fractions so you can share a calculation as a link.