Fraction Calculator

About this calculator

The Fraction Calculator adds, subtracts, multiplies and divides fractions and mixed numbers, always returning the answer in lowest terms with the working shown. Separate modes simplify a fraction, turn a decimal into a fraction, turn a fraction into a decimal, and handle numerators and denominators with hundreds of digits.

Pick a mode, fill in the numbers and press Calculate. Results appear as a reduced fraction, a mixed number and a decimal.

Mixed number such as 2 3/4, a fraction such as 5/8, or a whole number.
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How fraction arithmetic works

A fraction writes one whole-number quantity over another: the numerator counts the parts you have and the denominator says how many equal parts make a whole. Every operation on fractions comes down to a few rules, and the calculator applies them in the same order you would on paper.

Adding and subtracting

Fractions can only be combined when they are cut into pieces of the same size. Find a common denominator (the least common multiple of the two denominators is the tidiest choice), rewrite each fraction with it, then add or subtract the numerators.

a/b + c/d = (a × m/b + c × m/d) / m, where m = lcm(b, d)

Example: 3/4 + 1/6. The least common multiple of 4 and 6 is 12, so 3/4 becomes 9/12 and 1/6 becomes 2/12. Adding gives 11/12. Subtracting instead gives 9/12 - 2/12 = 7/12.

Multiplying

Multiply straight across: numerator times numerator, denominator times denominator. For 3/4 × 1/6 you get 3/24, which reduces to 1/8.

Dividing

Dividing by a fraction means multiplying by its reciprocal. For 3/4 ÷ 1/6, flip the second fraction to 6/1 and multiply: 18/4, which reduces to 9/2, or 4 1/2 as a mixed number. Dividing by a fraction whose numerator is zero is undefined.

Mixed numbers

A mixed number such as 2 1/3 is a whole number plus a proper fraction. To calculate with it, convert to an improper fraction first: multiply the whole part by the denominator and add the numerator, so 2 1/3 = (2 × 3 + 1)/3 = 7/3. After the operation the calculator converts the answer back to a mixed number when the numerator is larger than the denominator.

Simplifying fractions

A fraction is in lowest terms when the numerator and denominator share no common factor other than 1. Divide both by their greatest common factor (GCF). For 220/440 the GCF is 220, so the fraction is simply 1/2. The Euclidean algorithm finds the GCF quickly even for very large numbers, which is how the big-number mode stays exact.

Decimals and fractions

Decimal to fraction

Count the digits after the decimal point and put the digits over the matching power of ten, then reduce. For 0.1234 there are four decimal places, giving 1234/10000, which reduces to 617/5000.

Fraction to decimal

Divide the numerator by the denominator. Some fractions end (5/100 = 0.05), while others repeat forever. When the reduced denominator contains only the prime factors 2 and 5 the decimal terminates; any other prime factor produces a repeating block, often written in parentheses, for example 1/3 = 0.(3). The calculator prints decimals rounded to 14 significant digits, so 1/3 appears as 0.33333333333333.

FractionDecimal
1/20.5
1/30.(3)
1/40.25
1/50.2
1/60.1(6)
1/80.125
1/90.(1)

Working with huge numbers

Ordinary calculators lose accuracy once a numerator or denominator passes about 16 digits. The big-number mode keeps every digit, so you can add, subtract, multiply and divide fractions built from integers of any practical length and still get an exact, fully reduced answer.

Common mistakes to avoid

  • Adding the denominators. 1/4 + 1/4 is 2/4, not 2/8.
  • Forgetting to flip the second fraction when dividing.
  • Leaving an answer unreduced. 6/8 and 3/4 are equal, but 3/4 is the expected form.
  • Putting a negative sign on a mixed number's fraction only. Enter the sign on the whole part.

Frequently asked questions

How do you add fractions with different denominators?
Rewrite both fractions over a common denominator, usually the least common multiple of the two denominators, add the numerators, then reduce. For 3/4 + 1/6 the common denominator is 12, giving 11/12.
How do you divide fractions?
Multiply the first fraction by the reciprocal of the second. 3/4 divided by 1/6 equals 3/4 × 6/1 = 18/4 = 9/2.
How do I turn a decimal into a fraction?
Write the digits over a power of ten with one zero per decimal place, then divide top and bottom by their greatest common factor. 0.1234 becomes 1234/10000 = 617/5000.
How do I know when a fraction is fully simplified?
It is simplified when the numerator and denominator have no common factor larger than 1, meaning their greatest common factor is 1.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.