Toolstia / Fraction calculator

Fraction calculator

This calculator adds, subtracts, multiplies and divides two fractions and returns an exact, fully reduced answer. It accepts proper and improper fractions, mixed numbers such as 2 1/2, whole numbers and decimals such as 0.125, so you do not need to convert anything beforehand.

The result appears three ways: as a simplified fraction, as a mixed number and as a decimal. When a decimal repeats, the repeating digits are placed in brackets, so you can see at a glance that 5/12 is 0.41(6). Calculations use whole-number arithmetic without floating point, so there is no rounding error hiding in the answer.

It is useful for school work, recipe scaling, woodworking measurements and any time you need an exact result rather than a rounded decimal.

Enter fractions like 3/4, mixed numbers like 1 1/2, whole numbers or decimals.

Results are exact and always reduced to lowest terms. Repeating decimals are shown with the repeating digits in brackets, so 1/3 is 0.(3).

How it works

  1. Enter the first fraction, such as 3/4 or 1 1/2.
  2. Choose add, subtract, multiply or divide and enter the second.
  3. Read the simplified result, mixed number and decimal.

Adding and subtracting

The fractions are put over a common denominator and combined. 1/2 + 1/3 = 3/6 + 2/6 = 5/6.

Multiplying and dividing

To multiply, multiply the tops and the bottoms. To divide, multiply by the reciprocal of the second fraction. Dividing by zero is not allowed.

Always simplified

Results are divided by the greatest common divisor of top and bottom, so 6/8 shows as 3/4. Calculation uses exact whole numbers, so there is no rounding error.

Formats accepted

Write fractions as 3/4, mixed numbers as 2 3/4, negatives with a minus sign, and decimals like 0.125. Decimals are converted exactly.

Four worked examples

3/4 + 5/6 = 9/12 + 10/12 = 19/12, which is 1 7/12 or 1.58(3). 2 1/2 x 1 1/3 = 5/2 x 4/3 = 20/6 = 10/3, which is 3 1/3. 7/8 minus 1 1/4 = 7/8 minus 10/8 = negative 3/8, or negative 0.375. 3/5 divided by 9/10 = 3/5 x 10/9 = 30/45 = 2/3, which is 0.(6).

You can reproduce each of these by typing the two fractions and choosing the operation.

Mixing decimals and fractions

A decimal is converted exactly to a fraction before the calculation, so 0.125 + 1/3 becomes 1/8 + 1/3 = 11/24, shown as 0.458(3). The tool does not go through a rounded floating-point value.

You can enter 0.5 as the second value and 3/4 as the first, and the sum comes out as 5/4, or 1 1/4. Both inputs must be plain numbers; a decimal inside a fraction, such as 1.5/2, is not accepted.

Reading the repeating-decimal notation

The digits inside the brackets repeat forever. 1/7 is 0.(142857), a six-digit cycle. 1/6 is 0.1(6), where the 1 does not repeat. Fractions whose reduced denominator has only the prime factors 2 and 5 terminate, such as 3/8 = 0.375; all others repeat.

If a decimal does not terminate within the display length and no repeat is found yet, it ends in an ellipsis. That is rare, because the tool shows twelve decimal places.

How to type each kind of number

Fractions use a slash: 3/4. Mixed numbers use a space between the whole part and the fraction: 2 3/4. Negative values take a leading minus: -1 1/2 or -3/4. Whole numbers and decimals are fine. Spaces around the slash are tolerated.

A zero denominator cannot be entered, and division by a zero fraction produces an error message instead of an answer.

When to use a different tool

This tool works with two operands. For a longer sum, do it in steps, using the result as the next input. It does not handle exponents, roots or percentages.

If you only need to turn a decimal into a fraction, the decimal to fraction calculator is more direct. For finding the greatest common divisor or least common multiple of whole numbers, use the GCD and LCM tool.

Questions

How are repeating decimals shown?

The repeating digits are in brackets, so 1/3 is 0.(3) and 1/6 is 0.1(6).

Can I use improper fractions?

Yes, like 9/4. The answer is also given as a mixed number.

Is anything uploaded?

No. Your numbers stays in your browser and is never sent anywhere.

Why does the answer sometimes have a negative sign in the numerator only?

The sign is carried by the numerator, so negative three eighths appears as -3/8. The denominator is always positive.

Can I enter a whole number?

Yes. A whole number such as 4 is treated as 4/1.

Does it simplify automatically?

Yes. Every result is divided by the greatest common divisor, so 6/8 appears as 3/4.

Why is the decimal for 1/3 shown as 0.(3)?

The bracket means the digit 3 repeats forever, which is more exact than a rounded 0.3333.

Can it handle very large numerators?

Yes. It uses arbitrary-size whole numbers, so long inputs do not overflow.