Skip to content
OverCalculator
  1. Home
  2. Math & Scientific
  3. Fraction Calculator
Math & Scientific

Fraction Calculator

Add, subtract, multiply, and divide fractions with simplified results, mixed numbers, decimal values, denominator rules, and worked examples.

Published

Simplified result
Fraction
5/6
Mixed number
5/6
Decimal
0.833333

The fraction is simplified and the denominator is kept positive.

Results update as you type.

Fraction Calculator

Fractions are exact ratios, not just unfinished decimals. A recipe that needs three eighths of a cup, a board cut to five sixteenths of an inch, or a probability written as seven out of twelve is often clearer as a fraction than as a rounded decimal. This fraction calculator performs the four basic operations and then reduces the result the same way you would in careful written arithmetic.

What the calculator actually computes

The calculator accepts two fractions, each with a numerator and denominator, and an operation: add, subtract, multiply, or divide. It first checks that all four entries are finite numbers and that neither denominator is zero. For division, it also checks that the second numerator is not zero, because dividing by a zero-valued fraction is division by zero. After the operation, the method simplifies the fraction by dividing the numerator and denominator by their greatest common divisor. If the denominator is negative, both signs are flipped so the denominator is positive.

The displayed outputs are the simplified fraction, a mixed number, and a decimal rounded to six places. The decimal is useful for checking size, but the simplified fraction is the exact result.

Formulas and definitions

Let the first fraction be

ab\frac{a}{b}

and the second fraction be

cd\frac{c}{d}

where aa and cc are numerators, bb and dd are denominators, and beq0b eq 0 and deq0d eq 0. Addition and subtraction use a common denominator:

ab+cd=ad+cbbd\frac{a}{b} + \frac{c}{d} = \frac{ad + cb}{bd}

abcd=adcbbd\frac{a}{b} - \frac{c}{d} = \frac{ad - cb}{bd}

Multiplication multiplies across:

ab×cd=acbd\frac{a}{b} \times \frac{c}{d} = \frac{ac}{bd}

Division multiplies by the reciprocal, with ceq0c eq 0:

ab÷cd=adbc\frac{a}{b} \div \frac{c}{d} = \frac{ad}{bc}

To simplify, the calculator finds the greatest common divisor g of the result numerator and denominator and uses

mn=m÷gn÷g\frac{m}{n} = \frac{m \div g}{n \div g}

Worked example checked against compute

Use 7/8 minus 2/3. In the calculator, enter first numerator 7, first denominator 8, choose Subtract, then enter second numerator 2 and second denominator 3. The raw numerator is

7×32×8=2116=57 \times 3 - 2 \times 8 = 21 - 16 = 5

The raw denominator is

8×3=248 \times 3 = 24

The greatest common divisor of 5 and 24 is 1, so the result stays 5/24. Because the absolute numerator is smaller than the denominator, the mixed number is also 5/24. The decimal item is 0.208333, shown to six decimal places. A multiplication check such as 2/3 times 5/4 gives 10/12, simplifies by 2, and returns 5/6 with decimal 0.833333.

Interpreting fraction results in real work

Exact fractions prevent small rounding errors from accumulating. In cooking, 5/24 of a batch can be scaled again without deciding whether 0.208333 should be rounded up or down. In construction, keeping a cut as 5/16 inch may be more useful than writing 0.3125 inch if the measuring tape is fractional. In probability, 5 favorable outcomes out of 24 possible outcomes communicates the sample space directly.

Related tools can help once the exact fraction has served its purpose. Use the long division calculator to inspect the quotient and remainder behind a decimal expansion, the percentage calculator to express a fraction as a percent, and the statistics calculator when fractions are part of a larger data set.

Edge cases and common mistakes

The calculator does not require integer inputs at the TypeScript level, although the calculator’s step is set to 1. Fractions are mathematically intended to use integer numerators and denominators; decimal entries can lead to greatest-common-divisor behavior that is not meaningful for exact rational arithmetic. Denominators of zero are invalid, and division by a fraction with numerator zero is invalid. Negative signs are allowed, but the result is normalized so the denominator is positive.

The most common hand mistake is adding denominators: one half plus one third is not two fifths. The denominator describes the size of pieces, so the pieces must be made the same size before adding. Another mistake is forgetting to invert the second fraction during division. Finally, avoid replacing an exact answer with a rounded decimal unless the application genuinely calls for measurement rather than exact arithmetic.

Why simplification matters

Simplifying is not cosmetic. Two fractions can represent the same rational number while hiding very different arithmetic. Ten twelfths and five sixths land at the same point on a number line, but five sixths shows immediately that the numerator and denominator share no whole-number factor greater than one. That reduced form makes comparison easier: five sixths is plainly larger than three fourths after cross multiplication, while ten twelfths may invite unnecessary extra work.

The calculator uses the Euclidean greatest-common-divisor process, the standard efficient way to find the largest factor shared by two integers. It repeatedly replaces the larger problem with a smaller remainder problem until the remainder is zero. Dividing numerator and denominator by that final divisor does not change the value, because it divides the ratio by one in disguised form.

Real application: scaling a recipe

Suppose a recipe uses 3/4 cup of flour and you want two thirds of the batch. Multiplication gives 3/4 times 2/3, so the raw product is 6/12 and the simplified result is 1/2 cup. In a kitchen, the simplified answer is easier to measure and less likely to be misread. In a workshop, the same principle helps convert repeated fractional cuts into a clean mark on a ruler. Exact fractions let you postpone rounding until the final physical measurement.

Sources

  • Wolfram MathWorld, Fraction — definition of fractions as ratios of quantities.
  • Khan Academy, Fraction arithmetic — instructional reference for operations with fractions.

Frequently asked questions

Why can a denominator not be zero?
A denominator tells how many equal parts make one whole. Zero equal parts cannot define a finite part size, so division by zero is undefined. The calculator rejects either input fraction when its denominator is zero and also rejects division by a second fraction whose numerator is zero.
How do you add fractions with different denominators?
Rewrite both fractions over a common denominator, usually the product of the two denominators or their least common multiple. Then add the adjusted numerators and keep that common denominator. The calculator uses the product method first, then simplifies the final result.
How does fraction division work?
Dividing by a nonzero fraction is the same as multiplying by its reciprocal. The reciprocal swaps the second fraction's numerator and denominator. For example, two thirds divided by five fourths becomes two thirds times four fifths, then the product is simplified.
What does the mixed number output mean?
A mixed number separates an improper fraction into a whole-number part and a remaining proper fraction. For example, eleven fourths becomes two and three fourths. The calculator uses the same simplified numerator and denominator, so the mixed number and fraction represent the identical value.
Are negative fractions supported?
Yes. Numerators and denominators may be negative, but the final denominator is normalized to be positive. A negative sign is therefore carried by the numerator or by the whole mixed number. This avoids equivalent forms such as one over negative two and negative one over two appearing inconsistently.

Related calculators

Fraction Calculator updated at