Fraction calculator
Add, subtract, multiply and divide fractions, or reduce a single fraction to lowest terms. You get the simplified fraction, mixed number, decimal and the steps. Free, handles very large numbers, and runs in your browser.
How to use it
- Choose the Operation.
- Type the numerators and denominators as whole numbers.
- Read the simplified fraction, mixed number, decimal and step by step below.
How to add, subtract, multiply and divide fractions
What the calculator does
Fractions show up in recipes, woodworking measurements, school homework and probability. The rules are simple but easy to slip on: a wrong common denominator or a forgotten simplification changes the answer. This tool takes two fractions (or one, when simplifying), applies the chosen Operation, and always returns the fraction in lowest terms, together with its mixed number form and its decimal value.
The rules behind each operation
| Operation | Rule | Example |
|---|---|---|
| Add or subtract | Convert to a common denominator, then add or subtract the numerators | 1/2 + 1/3 = 3/6 + 2/6 = 5/6 |
| Multiply | Multiply numerators together and denominators together | 2/3 × 3/4 = 6/12 = 1/2 |
| Divide | Multiply by the reciprocal of the second fraction | 3/4 ÷ 3/8 = 3/4 × 8/3 = 2 |
| Simplify | Divide numerator and denominator by their greatest common divisor | 12/18 = 2/3 |
For addition and subtraction the tool uses the least common multiple of the two denominators, which keeps the numbers as small as possible. Every result is then divided by the GCD of numerator and denominator. A negative sign is always moved to the numerator, so 1/-2 is shown as -1/2.
Worked example
- Choose Add (+) in Operation.
- Type 3 in Numerator 1, 4 in Denominator 1, 5 in Numerator 2 and 6 in Denominator 2. You are adding 3/4 and 5/6.
- The least common multiple of 4 and 6 is 12, so the fractions become 9/12 and 10/12.
- Adding the numerators gives 19/12. The GCD of 19 and 12 is 1, so it is already in lowest terms.
- The result is 19/12, shown as the mixed number 1 7/12 and the decimal 1.58(3).
Another one: choose Simplify one fraction and enter 84 and 126. The GCD is 42, so 84/126 becomes 2/3, with decimal 0.(6). In simplify mode the second fraction is ignored.
Reading the decimal
Many fractions have decimals that never end. The tool detects the repeating block and puts it in parentheses: 1.58(3) means 1.58333..., and 0.(6) means 0.6666.... Fractions whose reduced denominator has only the factors 2 and 5 end exactly, like 3/8 = 0.375. Very long repeating blocks are cut after 60 digits and marked with "...".
Tips and common mistakes
- Enter whole numbers only. To use 1 1/2, convert it first to 3/2. To use 0.75, write 3/4.
- Never add the denominators. 1/2 + 1/3 is not 2/5; the denominator must be common first.
- A zero denominator is invalid, and you cannot divide by a fraction whose numerator is 0. The tool shows a clear message in both cases.
- Numbers can be very large because the arithmetic is exact (no floating point), so there is no rounding error even with 30-digit numerators.
- If the result seems unexpected, open the step by step: it shows the common denominator, the GCD and the reduction.
Related tools
To see how the common denominator and the reduction are found, try the GCD and LCM calculator. To turn a fraction into a share of a whole, use the percentage calculator, and to test whether a denominator is prime, the prime number checker.
Questions
How do I add fractions with different denominators?
Find a common denominator (the least common multiple), convert both fractions, add the numerators, then simplify. For 1/2 + 1/3 the common denominator is 6, giving 5/6.
How do I divide fractions?
Multiply the first fraction by the reciprocal of the second. For example, 3/4 ÷ 3/8 = 3/4 × 8/3 = 2.
What does the decimal in parentheses mean?
Digits in parentheses repeat forever. 1/3 is shown as 0.(3), which means 0.3333...
Can it handle huge numbers?
Yes. The calculation uses exact integer arithmetic, so there is no rounding even with very large numerators and denominators. Decimals and mixed numbers are not accepted as input, only whole numbers.