Fraction Calculator Formula
Understand the math behind the fraction calculator. Each variable explained with a worked example.
Formulas Used
Sum Numerator
sum_numerator = a * d + b * cSum Denominator
sum_denominator = b * dSum Decimal
sum_decimal = a / b + c / dDifference Numerator
difference_numerator = a * d - b * cDifference Denominator
difference_denominator = b * dDifference Decimal
difference_decimal = a / b - c / dProduct Numerator
product_numerator = a * cProduct Denominator
product_denominator = b * dProduct Decimal
product_decimal = (a * c) / (b * d)Quotient Numerator
quotient_numerator = a * dQuotient Denominator
quotient_denominator = b * cQuotient Decimal
quotient_decimal = (a / b) / (c / d)Variables
| Variable | Description | Default |
|---|---|---|
a | Numerator 1 | 1 |
b | Denominator 1 | 3 |
c | Numerator 2 | 1 |
d | Denominator 2 | 4 |
How It Works
How to Calculate with Fractions
Addition
a/b + c/d = (a×d + b×c) / (b×d)
Subtraction
a/b - c/d = (a×d - b×c) / (b×d)
Multiplication
a/b × c/d = (a×c) / (b×d)
Division
a/b ÷ c/d = (a×d) / (b×c)
Results may need to be simplified by dividing both numerator and denominator by their greatest common factor.
Worked Example
Calculate 1/3 + 1/4, 1/3 - 1/4, 1/3 × 1/4, and 1/3 ÷ 1/4.
a = 1b = 3c = 1d = 4
- 01Sum: (1×4 + 3×1) / (3×4) = 7/12 ≈ 0.583333
- 02Difference: (1×4 - 3×1) / (3×4) = 1/12 ≈ 0.083333
- 03Product: (1×1) / (3×4) = 1/12 ≈ 0.083333
- 04Quotient: (1×4) / (3×1) = 4/3 ≈ 1.333333
Ready to run the numbers?
Open Fraction Calculator