CompoundPage

Fraction Calculator

The fraction calculator gives exact answers in lowest terms, with the common denominator written out. 1/3 + 1/6 is 1/2 here, not 0.49999999999999994.

When rewriting over a denominator, the denominator to rewrite the first fraction over.

Answer1/2

As a mixed number Already a proper fraction: smaller than one, so there is no whole part.
1/2
As a decimal Exact.
0.5
The problem
1/3 + 1/6 = 1/2
Common denominator The least common multiple of 3 and 6. Multiplying the denominators together would give 18, which also works but needs reducing afterward.
6
Rewritten over it
2/6 + 1/6 = 3/6
Reduced
divide top and bottom by 3 to get 1/2
As a percentage
50%
Comparison Compared by cross-multiplying rather than by converting to decimals, so the answer is exact even when the decimals are not.
1/3 is larger than 1/6
  • Every answer is exact and in lowest terms. No step converts to a decimal, which is what lets 1/3 + 1/6 come out as exactly 1/2.
  • A mixed number's sign applies to the whole quantity: -2 1/3 means -(2 + 1/3), which is -7/3.

How the Fraction Calculator works

Fractions follow four rules, and three of them are easier than the one everybody remembers.

Multiplication is the simplest: multiply the numerators, multiply the denominators. 2/3 x 3/4 = 6/12 = 1/2. No common denominator is needed, which is the opposite of what most people half-remember from school.

Division is multiplication by the reciprocal: flip the second fraction and multiply. 1/2 / 1/4 = 1/2 x 4/1 = 4/2 = 2. This is also the clearest explanation of a fact that looks wrong: dividing by a number smaller than one makes the result bigger. "How many quarters fit in a half" is 2, and that is what the arithmetic says.

Addition and subtraction are the ones that need work, because you can only add parts of the same size. 1/3 + 1/6 needs both over a common denominator: 2/6 + 1/6 = 3/6 = 1/2. Any common denominator works, and the product of the two always is one, but the least common multiple keeps the numbers small. For 1/4 + 1/6, the LCM is 12 rather than 24, so you work with 3/12 + 2/12 instead of 6/24 + 4/24.

Then reducing. A fraction is in lowest terms when the numerator and denominator share no factor but 1, and getting there means dividing both by their greatest common divisor. 6/12 has a GCD of 6, so it reduces to 1/2. Euclid's algorithm finds the GCD by repeated remainders and is what every implementation uses, including this one.

Mixed numbers are the other source of errors, and the mistake is always about the sign. 2 1/3 means 2 + 1/3, so as an improper fraction it is 7/3. But -2 1/3 means -(2 + 1/3), which is -7/3, and not -2 + 1/3 = -5/3. The minus sign belongs to the whole quantity. This calculator reads the sign off the whole number and applies it to the total, which is the convention everywhere outside a few deliberately tricky textbook problems.

The reason to work in fractions rather than decimals at all is exactness. 1/3 cannot be written as a terminating decimal, so any decimal is an approximation, and approximations accumulate. In floating-point arithmetic 1/3 + 1/6 does not quite equal 0.5. It comes to 0.49999999999999994, which is harmless once but fatal in a chain of operations. Working in exact integers and reducing at every step, as this calculator does, never has that problem.

Which fractions terminate as decimals is a tidy result worth knowing: exactly those whose denominator in lowest terms has no prime factors other than 2 and 5. So halves, quarters, fifths, eighths, tenths and twentieths all terminate, and thirds, sevenths, ninths and elevenths all repeat. 1/7 is 0.142857 repeating, with a six-digit cycle, and no amount of decimal places will ever write it exactly.

Three more jobs sit under the operation menu. Simplify reduces one fraction to lowest terms and shows the greatest common factor found by Euclid's algorithm: 18/24 has a GCF of 6 and simplifies to 3/4. Compare says which of two fractions is larger by cross-multiplying, so 5/8 against 3/5 is 25 against 24 and 5/8 wins by 1/40. Rewrite over a denominator gives the equivalent fraction with the denominator you choose: 3/4 over 20 is 15/20.

Fraction Calculator FAQ

How do I add fractions with different denominators?

Rewrite both over a common denominator, then add the numerators and keep the denominator. For 1/3 + 1/6 the least common multiple of 3 and 6 is 6, giving 2/6 + 1/6 = 3/6, which reduces to 1/2. Multiplying the two denominators together always produces a workable common denominator, just a larger one.

Why do you flip the second fraction when dividing?

Because dividing by a number is the same as multiplying by its reciprocal, and the reciprocal of a fraction is that fraction upside down. 1/2 divided by 1/4 asks how many quarters fit in a half, which is 2, and 1/2 x 4/1 = 2. It is also why dividing by a fraction under one makes the answer bigger.

How do I convert a mixed number to an improper fraction?

Multiply the whole number by the denominator, add the numerator, and keep the denominator. 2 1/3 becomes (2 x 3 + 1) / 3 = 7/3. For a negative mixed number the sign applies to everything: -2 1/3 is -7/3, not -5/3.

How do I simplify a fraction?

Divide the numerator and the denominator by their greatest common factor. 18/24 has a GCF of 6, so it simplifies to 3/4. Choose Simplify in the operation menu to see the GCF worked out.

Which fractions turn into repeating decimals?

Any fraction whose denominator, once reduced, has a prime factor other than 2 or 5. So 1/8 terminates at 0.125 but 1/3, 1/7 and 1/9 all repeat. 1/7 repeats with a six-digit cycle: 0.142857142857... This calculator shows the repeating block in brackets rather than rounding it off.

Fraction calculators

Related calculators

Embed this calculator
<div id="compoundpage-fraction-calculator"></div>
<script src="https://compoundpage.com/embed/fraction-calculator.js" async></script>

The same calculation as JSON