Fraction Calculator

· How we calculate · Free, no sign-up

Quick answer

To add or subtract fractions, convert to a common denominator; to multiply, multiply tops and bottoms; to divide, multiply by the reciprocal. Then simplify by the greatest common divisor. Example: 1/2 + 1/3 = 3/6 + 2/6 = 5/6.

Add, subtract, multiply or divide fractions and mixed numbers and see every step of the working. You can also simplify a fraction or turn any decimal — even a repeating one — into a fraction.

Fraction 1
Fraction 2

The small left box is an optional whole number for mixed numbers (e.g. 1 1/2). For a negative mixed number put the minus on the whole number; otherwise put it on the numerator.

How to use the fraction calculator

  1. On the Fraction math tab, type each fraction’s numerator (top) and denominator (bottom). For a mixed number such as 1 1/2, also fill the small whole-number box.
  2. Pick the operation: +, −, × or ÷. The answer appears instantly as a simplified fraction, a mixed number and a decimal, followed by every step of the working.
  3. Use the Simplify tab to reduce a single fraction, or Decimal → fraction to convert a decimal (including repeating decimals) into a fraction.

Rules for fraction arithmetic

a/b + c/d = (a·d + c·b) / (b·d) — then simplify a/b − c/d = (a·d − c·b) / (b·d) a/b × c/d = (a·c) / (b·d) a/b ÷ c/d = a/b × d/c = (a·d) / (b·c) (c ≠ 0)

For addition and subtraction the calculator uses the least common denominator rather than simply multiplying the denominators, which keeps the numbers smaller and the steps easier to follow. Every answer is then reduced by dividing the numerator and denominator by their greatest common divisor (GCD).

Worked example: 1 1/2 + 2/3

  1. Convert the mixed number: 1 1/2 = (1 × 2 + 1)/2 = 3/2.
  2. The least common denominator of 2 and 3 is 6, so 3/2 = 9/6 and 2/3 = 4/6.
  3. Add the numerators: (9 + 4)/6 = 13/6.
  4. GCD(13, 6) = 1, so 13/6 is already in simplest form.
  5. As a mixed number, 13 ÷ 6 = 2 remainder 1, so the answer is 2 1/6, or 2.1666… (2.16) as a decimal.

Simplifying fractions

A fraction is in simplest form when the numerator and denominator share no common factor other than 1. To simplify 84/126, find the GCD with the Euclidean algorithm: 126 = 1 × 84 + 42, then 84 = 2 × 42 + 0, so the GCD is 42. Dividing both parts by 42 gives 2/3.

Converting decimals to fractions

A terminating decimal becomes a fraction over a power of ten: 0.375 has three decimal places, so 0.375 = 375/1000 = 3/8 after dividing by the GCD of 125.

A repeating decimal needs one extra trick. For x = 0.1666…, multiply by 100 to get 100x = 16.666… and by 10 to get 10x = 1.666…. Subtracting cancels the endless tail: 90x = 15, so x = 15/90 = 1/6. Enter 0.1 as the decimal and 6 as the repeating digits to see these steps.

DecimalFractionDecimalFraction
0.51/20.333…1/3
0.251/40.666…2/3
0.1251/80.1666…1/6
0.21/50.142857142857…1/7
0.06251/160.111…1/9

Long decimals that come from measurements rarely have an exact “nice” fraction, so the calculator also offers an approximation. Choose Nearest 1/16 to round to the nearest sixteenth of an inch — 0.33 becomes 5/16, off by 0.0175. The best fraction with denominator ≤ 1000 option uses continued fractions to find the closest simple fraction, which turns 3.14159 into 355/113 (off by about 0.0000029).

Embed this calculator on your website — free

Copy this code into your page. The calculator stays up to date automatically and resizes to fit.

Frequently asked questions

How do you add fractions with different denominators?

Find the least common denominator (LCD), rewrite both fractions with it, then add the numerators. For 1/2 + 2/3 the LCD is 6, so 1/2 = 3/6 and 2/3 = 4/6, and 3/6 + 4/6 = 7/6 = 1 1/6.

How do I enter a mixed number like 2 3/4?

Type 2 in the small whole-number box, 3 as the numerator and 4 as the denominator. For a negative mixed number such as −2 3/4, put the minus sign only on the whole number. Leave the whole-number box empty for an ordinary fraction.

How do you divide fractions?

Keep the first fraction, flip the second one (take its reciprocal) and multiply. For example 3/4 ÷ 2/5 = 3/4 × 5/2 = 15/8 = 1 7/8. You cannot divide by a fraction equal to zero.

How do I convert a repeating decimal to a fraction?

Open the “Decimal → fraction” tab, type the part before the repeat in the decimal box and the digits that repeat in the “Repeating digits” box. For 0.1666… enter 0.1 and repeating 6 to get 1/6; for 0.333… enter 0 and repeating 3 to get 1/3.

Are the answers exact?

Yes. Fractions are calculated with exact whole-number (integer) arithmetic rather than rounded decimals, so even very large numerators and denominators simplify correctly. Only the decimal approximation is rounded.