Mathematics calculator

Adding and Subtracting Fractions Calculator

Add or subtract two integer fractions and return the result in lowest terms with its decimal value.

Calculator inputs

Enter your values

Fraction arithmetic
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

How Do You Add or Subtract Fractions?

To add or subtract fractions, express them with a common denominator, combine the numerators and reduce the result. The denominator describes the size of the parts, so you cannot usually add the denominators as though they were separate counts.

This adding and subtracting fractions calculator combines two integer fractions using addition or subtraction. It returns a simplified fraction, a four-decimal approximation and the intermediate fraction before reduction. It accepts negative entries but does not take mixed numbers or a multi-step expression directly.

How to Enter Two Fractions

  1. Choose Operation: Addition or Subtraction. Subtraction means the first fraction minus the second.
  2. Enter the first fraction in First numerator and First denominator.
  3. Enter the second fraction in Second numerator and Second denominator. Each entry must be an integer between −1000000 and 1000000; neither denominator can be zero.
  4. Select Calculate. Read the simplified result, decimal value and Before simplification reference to follow the arithmetic.

Use zero for a zero numerator. For a mixed number, first convert it to an improper fraction; for example, 1 2/3 becomes 5/3. The form does not parse a slash expression entered into one field.

The implementation uses the product of the denominators as its common denominator, which may be larger than the least common denominator. It then divides numerator and denominator by their greatest common divisor and moves any denominator sign to the numerator. Both methods give the same reduced value.

Fraction Addition and Subtraction Formulas

Addition: a/b + c/d = (ad + bc)/(bd)

Subtraction: a/b − c/d = (ad − bc)/(bd)

Require b ≠ 0 and d ≠ 0

Reduction: N/D = (N/g)/(D/g), where g = gcd(|N|, |D|)

Multiplying both parts of the first fraction by d and both parts of the second by b creates equal denominators without changing either value. Addition or subtraction then applies only to the new numerators.

The least common denominator is often convenient by hand, but a product denominator is valid even when it is not the smallest choice. The calculator’s final reduction removes unnecessary common factors. A zero total is written as 0/1, and a whole-number result can be written with denominator 1.

Reference: OpenStax: Add and Subtract Fractions. Common denominators, equivalent fractions and fraction addition/subtraction. Form bounds, formatting and numerical limitations follow this calculator’s implementation.

Numerators, Denominators and Simplified Results

Operation
Addition or first-minus-second subtraction.
First numerator and denominator
Signed integers defining the first fraction; its denominator cannot be zero.
Second numerator and denominator
Signed integers defining the second fraction, subject to the same rules.
Simplified result
Exact reduced fraction within the accepted integer bounds, with positive denominator.
Decimal value
Approximation rounded to four decimal places; commas group large whole-number parts.
Before simplification
Product-denominator fraction before the greatest-common-divisor reduction.
Input references
Original first and second fractions, preserving signs for checking the entered order.

Adding Fractions Worked Example

Illustrative example. Add 5/8 + 7/12. Enter the two fractions and choose Addition.

The program uses denominator 8 × 12 = 96. Its numerator is 5 × 12 + 7 × 8 = 60 + 56 = 116. Reduce 116/96 by 4 to obtain 29/24, with decimal display 1.2083.

Independently use the least common denominator 24: 5/8 = 15/24 and 7/12 = 14/24, giving 29/24. Choosing Subtraction instead gives 1/24, approximately 0.0417.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Adding Fractions Worked Example
StepValue
First fraction5/8
Second fraction7/12
Product-denominator sum116/96
Greatest common divisor4
Simplified sum29/24
Decimal display1.2083

Product Denominator Versus Least Common Denominator

A common denominator need not be the smallest one. For denominators 8 and 12, the product is 96, while the least common denominator is 24. Both lead to the same reduced answer.

The calculator displays the product-denominator route. A different intermediate fraction in your handwritten work can therefore still be correct.

Product Denominator Versus Least Common Denominator
OperationProduct-denominator resultReduced result
5/8 + 7/12116/9629/24
5/8 − 7/124/961/24
1/(−3) + 1/63/(−18)−1/6
5/8 − 5/80/640/1

How to Read the Fraction and Decimal Results

An improper fraction is valid: a numerator larger in magnitude than its denominator means the value exceeds 1 in magnitude. The form keeps the result as a fraction rather than converting it to a mixed number.

The simplified fraction is the exact result for accepted inputs. Its decimal card may round a repeating expansion. For example, 1/24 displays as 0.0417, while the exact value continues 0.041666…. Keep the fraction for later exact arithmetic.

A negative result in subtraction can mean the second fraction is larger. A negative denominator in an input is also valid, but the final output places the sign in the numerator. Reversing the subtraction order reverses the result’s sign; reversing the addition order leaves the sum unchanged.

Common Fraction Arithmetic Mistakes

  • Adding denominators instead of using a common denominator.
  • Changing a denominator without multiplying the numerator by the same factor.
  • Reversing the two fractions in subtraction.
  • Dropping a negative sign in a cross product.
  • Entering a mixed number directly into an integer field.
  • Treating the four-decimal card as an exact replacement for a recurring fraction.

Frequently Asked Questions

How do I add fractions with different denominators?

Rewrite them with a common denominator, add the corresponding numerators and reduce. This tool uses the product denominator and then simplifies with the greatest common divisor.

Do I add the denominators?

No. Denominators describe the size of the parts. After making equal-sized parts with a common denominator, add or subtract only the numerators.

Does the calculator use the least common denominator?

It uses the product of the two denominators, which is a valid common denominator but may not be the smallest. Final reduction gives the same simplified value.

Can I subtract a larger fraction from a smaller one?

Yes. The result is negative. The operation is first fraction minus second fraction, so input order matters.

Can I use negative denominators?

Yes, within the integer bounds. The final simplified fraction moves the sign to the numerator and leaves its denominator positive.

Can I enter mixed numbers?

Not directly. Convert each mixed number to an improper fraction first; for example, 1 2/3 becomes 5/3.

Why does zero appear as 0/1?

It is the normalized reduced fraction for zero. For example, 5/8 − 5/8 gives 0/64 before simplification and 0/1 afterward.

Is the decimal answer exact?

Not always. It is formatted to four decimal places. The reduced fraction preserves the exact accepted integer-fraction result, including recurring decimal values.

Sources and References