Fraction Calculator
Type fractions like 3/4, 1 1/2 or -2/3, pick an operator, and get the simplified answer with each step explained.
https://flxcode.com/fraction-calculator/
Add, subtract, multiply, divide Example
Type 3/4, 1 1/2, -2/3 or 0.25. Pick "none" for the last operator to use two fractions.
2/3 + 3/4 = 17/12 (1 5/12) = 1.416667 (rounded)
- Common denominator: the lowest common multiple of 3 and 4 is 12.
- Rewrite: 2/3 = 8/12 and 3/4 = 9/12.
- 8/12 + 9/12 = 17/12.
- Already in lowest terms.
- As a mixed number: 1 5/12.
- As a decimal: 1.41(6) (the digits in brackets repeat), about 1.416667.
Simplify a fraction Example
42/56 = 3/4
- Greatest common divisor of 42 and 56: 56 = 1 × 42 + 14; 42 = 3 × 14 + 0. The last non-zero remainder is 14.
- Divide top and bottom by 14: 3/4.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
The four rules
| Operation | What to do | Needs a common denominator? |
|---|---|---|
| a/b + c/d | Rewrite over a common bottom, add the tops | Yes |
| a/b − c/d | Same, but subtract the tops | Yes |
| a/b × c/d | (a × c) / (b × d) | No |
| a/b ÷ c/d | a/b × d/c, so flip the second one | No |
In every case, finish by dividing the top and bottom by their greatest common divisor.
Worked examples
| Sum | Answer | What happens |
|---|---|---|
| 1/2 + 1/3 | 5/6 | Denominators 2 and 3 share nothing, so the common one is 6: 3/6 + 2/6. |
| 3/4 − 2/3 | 1/12 | Common denominator 12: 9/12 − 8/12. |
| 2/3 × 9/10 | 3/5 | 18/30 cancels by 6. |
| 5/6 ÷ 1/3 | 5/2 | Flip 1/3 to 3/1: 5/6 × 3 = 15/6. |
| 1 1/2 + 3/4 | 9/4 | The mixed number is 3/2 first. Shows as 2 1/4 in the line "as a mixed number". |
| 0.25 + 1/8 | 3/8 | A decimal counts as a fraction: 0.25 is 1/4. |
| -3/8 × 4/9 | −1/6 | One minus sign gives a negative answer. |
| 1/2 + 1/3 × 3/4 | 3/4 | Three terms: times goes before plus, so 1/3 × 3/4 = 1/4 first. |
Simplifying
| Fraction | Lowest terms |
|---|---|
| 18/24 | 3/4 |
| 42/56 | 3/4 |
| 35/100 | 7/20 |
| 17/51 | 1/3 |
| 13/29 | 13/29 |
If the result stays the same, the top and bottom had no shared factor. 13/29 is one such case, because 29 is prime.
Common mistakes
- Adding tops and bottoms. 1/2 + 1/3 is not 2/5.
- Forgetting to flip when dividing, or flipping the wrong fraction. Only the second one flips.
- Cross-cancelling in a sum. Cancelling across works only in a product.
- Losing a minus sign. Put it in front of the whole number, as in -1 1/2.
Numbers this uses
- Exact whole numbers for tops and bottoms, with no rounding in the fraction itself.
- Decimals shown in the result stop at 30 digits. Repeats are marked in brackets, and the rounded value has 6 decimals.
- Size: up to 40 digits per number.
- Order of operations: times and divide before plus and minus, left to right otherwise.
Need a quick lookup instead? The fraction to decimal chart lists 1/2 to 63/64 as decimals.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
How do I add fractions with different denominators?
Find a common denominator, rewrite both fractions over it, then add the tops. For 1/2 + 1/3, use 6: 3/6 + 2/6 = 5/6. The lowest common multiple keeps the numbers small, and the steps show which one was used.
How do I multiply fractions?
Multiply the tops, multiply the bottoms, and simplify. 2/3 × 9/10 = 18/30 = 3/5. No common denominator is needed.
How do I divide fractions?
Flip the second fraction and multiply. 5/6 ÷ 1/3 = 5/6 × 3/1 = 15/6 = 5/2. Dividing by a fraction less than 1 makes the answer bigger.
How do I type a mixed number or a negative?
Type the whole part, a space, then the fraction: 1 1/2. For a negative, put the minus in front of everything: -1 1/2 means minus one and a half. Plain decimals like 0.25 work too. For boxes instead of text, use the mixed number calculator.
Can it do three fractions at once?
Yes. Choose a second operator and fill in the third box. Multiplication and division go first, as in any maths class, and the steps say so. Pick "none" to go back to two fractions.
How do I simplify a fraction?
Divide the top and bottom by their greatest common divisor. 42/56: the divisor is 14, so the answer is 3/4. The Simplify row shows the Euclid steps for finding it. A fraction is in lowest terms when the only common factor is 1.
What happens when I divide by zero?
You get an error message, not a number. A denominator of 0, such as 3/0, is not a fraction, and dividing by a fraction equal to 0 has no answer.
Why does it show both a fraction and a decimal?
So you can use whichever the next step needs. A repeating decimal is marked with brackets: 1/3 is 0.(3). For decimals in, fractions out, use the decimal to fraction calculator.
More from FLXCode
Mixed Number CalculatorNew
Add, subtract, multiply and divide mixed numbers with whole, top and bottom boxes. Converts improper fractions too.
Decimal to Fraction CalculatorNew
Turn a decimal into a simplified fraction, repeating decimals included, and round inches to the nearest 1/16.
Ratio CalculatorNew
Solve A:B = C:D, simplify a ratio, split a total in a ratio, or turn a ratio into percents.
Fraction to Decimal ChartNew
Fractions to decimals, percent and mm. Repeating decimals marked. Printable, with CSV and JSON downloads.