Fraction Calculator
Add, subtract, multiply and divide fractions to find simplified results and decimal equivalents.
Fraction Calculator
Enter values Calculate|
How the Fraction Calculator Works
The Fraction Calculator performs addition (+), subtraction (−), multiplication (×), and division (÷) on any two integer fractions a/b and c/d, automatically reducing the answer to its simplified lowest-terms fraction while also displaying the unreduced fraction, decimal equivalent, and whole or mixed number representation.
In addition to computing standard arithmetic, the engine validates that all numerators and denominators are whole integers, blocks division by zero, normalizes negative signs so the denominator is always positive, and reduces the result using the Greatest Common Divisor (GCD).
Fraction Arithmetic & Simplification Formulas
Given two fractions a/b (where a is Numerator A and b is Denominator A) and c/d (where c is Numerator B and d is Denominator B), with b ≠ 0 and d ≠ 0:
- Addition (
+):(a × d + c × b) / (b × d) - Subtraction (
−):(a × d − c × b) / (b × d) - Multiplication (
×):(a × c) / (b × d) - Division (
÷, requiresc ≠ 0):(a × d) / (b × c)
After computing the initial unreduced numerator (numr) and denominator (den), the calculator applies three post-processing steps:
- Sign Normalization: If
den < 0, both numerator and denominator are multiplied by−1so the denominator is strictly positive (for example,3/−2becomes−3/2). - GCD Reduction to Lowest Terms: Using the Euclidean algorithm to find
g = GCD(|numr|, |den|), the simplified fraction is:
Simplified Numerator (sNum) = numr ÷ g|Simplified Denominator (sDen) = den ÷ g - Whole & Mixed Number Conversion: If
sDen = 1, the result is a whole integer (sNum). If|sNum| > sDenandsDen > 1, the improper fraction is also written as a mixed number:trunc(sNum ÷ sDen)and remainder|sNum mod sDen| / sDen.
Input Rules and Zero-Denominator Protection
- Integer numerators and denominators: Enter positive, negative, or zero whole integers for
Numerator AandNumerator B, and non-zero whole integers forDenominator AandDenominator B. - Zero-denominator & zero-divisor guards: Because division by zero is undefined in mathematics, setting either denominator to
0—or dividing by a second fraction whose numeratorc = 0—triggers an immediateDivide by zerovalidation message.
Step-by-Step Worked Examples
Example 1: Default Addition (1/2 + 1/3)
- Cross-multiply to find a common denominator:
numr = (1 × 3) + (1 × 2) = 3 + 2 = 5;den = 2 × 3 = 6. - Check GCD:
GCD(5, 6) = 1(already in lowest terms). - Outputs:
- Main Result / Simplified result:
5/6 - Unreduced result:
5/6 - Decimal equivalent:
0.833333
- Main Result / Simplified result:
Example 2: Reducible & Improper Fractions (1/4 + 1/4 and 3/4 + 1/2)
- Adding
1/4 + 1/4: Unreduced formula gives(1×4 + 1×4) / (4×4) = 8/16. Dividing top and bottom byGCD(8, 16) = 8produces a Simplified result of1/2, an Unreduced result of8/16, and a Decimal equivalent of0.5. - Adding
3/4 + 1/2: Unreduced formula gives(3×2 + 1×4) / (4×2) = 10/8. Dividing byGCD(10, 8) = 2yields a Simplified result of5/4, a Mixed number of1 1/4, and a Decimal equivalent of1.25.
Verified Fraction Operations & Conversion Reference Table
The table below shows how the calculator resolves and simplifies all four operations across proper, improper, whole-number, and negative fractions:
| Expression | Operation | Unreduced Result | GCD | Simplified Result | Whole / Mixed Number | Decimal Equivalent |
|---|---|---|---|---|---|---|
1/2 + 1/3 |
Addition (+) |
5/6 |
1 | 5/6 |
Proper (< 1) | 0.833333 |
1/4 + 1/4 |
Addition (+) |
8/16 |
8 | 1/2 |
Proper (< 1) | 0.5 |
3/4 + 1/2 |
Addition (+) |
10/8 |
2 | 5/4 |
1 1/4 |
1.25 |
10/10 + 10/10 |
Addition (+) |
200/100 |
100 | 2 (2/1) |
2 |
2 |
1/2 − 1/2 |
Subtraction (−) |
0/4 |
4 | 0 (0/1) |
0 |
0 |
2/3 × 3/4 |
Multiplication (×) |
6/12 |
6 | 1/2 |
Proper (< 1) | 0.5 |
1/2 ÷ −1/3 |
Division (÷) |
3/−2 |
1 | −3/2 |
−1 1/2 |
−1.5 |
How to Interpret Your Results
- Simplified result: Your fraction reduced to lowest terms (or expressed as a whole integer when the simplified denominator equals
1). - Unreduced result: Shows the intermediate cross-multiplied fraction before dividing by the GCD—useful for checking homework steps.
- Whole / mixed number & Decimal equivalent: Converts improper fractions (where the numerator's absolute value exceeds the denominator) into a whole integer plus a proper fraction, and shows the base-10 decimal value up to 6 decimal places.
Common Mistakes When Working with Fractions
- Adding denominators directly: A frequent mistake is computing
1/2 + 1/3 = 2/5. Fractions can only be added or subtracted after finding a common denominator (3/6 + 2/6 = 5/6). - Forgetting to flip the second fraction when dividing: Dividing by
c/dis equivalent to multiplying by its reciprocald/c. - Converting mixed numbers before entry: If you have a mixed number such as
2 1/3, convert it to an improper fraction first ((2 × 3 + 1) / 3 = 7/3) before entering it. For related math conversions, see our Ratio Calculator, Percentage Calculator, Scientific Calculator, and our guide on How to Calculate Percentage Increase.
Methodology Note
Methodology: Exact integer arithmetic is used for cross-multiplication, sign normalization, and Euclidean GCD reduction, ensuring zero floating-point rounding error in the fractional and mixed-number outputs. Decimal equivalents are formatted to a maximum of 6 decimal places.