Fraction Calculator
Add, subtract, multiply or divide two integer fractions. Compare the simplified fraction with its six-decimal approximation and inspect common-denominator steps.
Real-time Results
Result in simplified fraction form
Result in decimal form
Calculation Steps
Step-by-step calculation explanation
| Item | Value |
|---|---|
| Problem Statement The mathematical expression to evaluate | (1/2) + (3/4) |
| Find Common Denominator Multiply denominators to get common denominator: 8 | (1×4) / (2×4) + (3×2) / (4×2) |
| Add Numerators Sum of numerators: 10 | (4 + 6) / 8 |
| Simplify Fraction Greatest Common Divisor (GCD) is 2. Divided both terms by 2. | 5/4 |
How it works
Enter two fractions as separate integer numerators and denominators. The calculator forms the arithmetic result, moves a negative denominator’s sign to the numerator and divides both parts by their greatest common divisor. Keep the simplified fraction when an exact rational answer matters; the decimal display is rounded to six places.
Why the calculation may use a larger common denominator
For addition and subtraction, this implementation multiplies the two denominators, then simplifies the final result. That common denominator is valid even when it is not the least common denominator.
Integer input and finite precision
This engine floors decimal inputs before calculating: 1.9 becomes 1 and −1.2 becomes −2. Enter integer components rather than relying on that conversion. Very large intermediate products can also exceed JavaScript’s exact integer range; this is not an arbitrary-precision rational algebra system.
Examples and interpretation(3)
How do you add 1/2 and 1/3?
- Numerator 1
- 1
- Denominator 1
- 2
- Operation
- Add (+)
- Numerator 2
- 1
- Denominator 2
- 3
- Use denominator 2 × 3 = 6.
- The new numerator is 1 × 3 + 1 × 2 = 5.
- 5 and 6 have no common factor greater than 1.
- Fraction Result
- 5/6
- Decimal Result
- 0.833333
5/6 is exact. The displayed 0.833333 is a rounded approximation, not an exact terminating decimal.
How many portions of 3/2 fit into 3/4?
- Numerator 1
- 3
- Denominator 1
- 4
- Operation
- Divide (÷)
- Numerator 2
- 3
- Denominator 2
- 2
- Invert the divisor: (3/4) × (2/3).
- Multiply to get 6/12, then divide both parts by 6.
- Fraction Result
- 1/2
- Decimal Result
- 0.500000
The answer is half of one portion. Dividing fractions does not mean dividing the numerator and denominator separately.
Can subtracting fractions produce a negative result?
- Numerator 1
- 1
- Denominator 1
- 2
- Operation
- Subtract (-)
- Numerator 2
- 3
- Denominator 2
- 4
- Rewrite 1/2 as 2/4.
- 2/4 − 3/4 = −1/4.
- Fraction Result
- -1/4
- Decimal Result
- -0.250000
A negative result is valid. Its minus sign belongs to the whole fraction, not to only one step of the calculation.
Inputs
| Parameter | Definition & Valid Bounds |
|---|---|
| Numerator 1 | Top number of the first fraction |
| Denominator 1 | Bottom number of the first fraction (cannot be zero) |
| Operation | Select mathematical operator Add (+) · Subtract (-) · Multiply (×) · Divide (÷) |
| Numerator 2 | Top number of the second fraction |
| Denominator 2 | Bottom number of the second fraction (cannot be zero) |
Formula
a/b + c/d = (ad + bc)/(bd) a/b − c/d = (ad − bc)/(bd) (a/b)(c/d) = ac/(bd) (a/b) ÷ (c/d) = ad/(bc); b, c, d ≠ 0 for division
How to use
- Enter whole-number numerators and nonzero denominators; convert a mixed number such as 2 1/3 into 7/3 first.
- Select addition, subtraction, multiplication or division, then enter the second fraction.
- Compare the simplified result, six-decimal result and operation steps. Division also requires a nonzero second numerator.
Frequently asked questions
How do I enter 2 1/3?
Use (2 × 3 + 1)/3 = 7/3. Enter 7 as the numerator and 3 as the denominator. The form does not parse a mixed-number text expression.
Why is the denominator not added when adding fractions?
The denominator describes the size of each part. First express both quantities using equally sized parts, then add their numerators. Thus 1/2 + 1/3 is 5/6, not 2/5.
Can I divide by a fraction whose numerator is zero?
No. A fraction with numerator zero and nonzero denominator represents zero. Dividing by it is undefined, just as division by the number zero is undefined.
Is the decimal result as exact as the simplified fraction?
Not generally. For example, 5/6 has an infinitely repeating decimal, so a six-place display loses information. Retain 5/6 for later exact arithmetic.
References
Related Calculators
More calculators selected by category and topic.
