home/math/fraction calculator

Fraction Calculator

Six fraction calculators: add, subtract, multiply, and divide fractions; work with mixed numbers; simplify fractions; convert between decimals and fractions; and perform exact big-number fraction arithmetic. All six use BigInt integers, so results stay exact however large the numbers get; the first five accept up to 300 digits per number.

Fraction Calculator

Enter numerators in the top boxes and denominators in the bottom boxes. Choose an operator and click Calculate.

▼Enter values and click Calculate
=?

Mixed Numbers Calculator

Enter mixed numbers as whole numerator/denominator (e.g. -2 3/4, 3 5/7), plain fractions (5/7), or integers (10).

▼Enter mixed numbers and click Calculate
=?

Simplify Fractions Calculator

Reduce a fraction or mixed number to its simplest form using the Greatest Common Divisor (GCD). Choose the input type below.

▼Enter values and click Calculate
=simplified

Decimal to Fraction Calculator

Enter a decimal number (e.g. 1.375) to convert it to its exact simplified fraction.

▼Enter a decimal and click Calculate
=
?
?

Fraction to Decimal Calculator

Enter a fraction to convert it to its decimal equivalent (up to 10 significant digits).

▼Enter a fraction and click Calculate
=?

Big Number Fraction Calculator

Perform exact fraction arithmetic on very large integers. Uses JavaScript BigInt — results are mathematically exact regardless of number size.

▼Enter large integers (no decimals) and click Calculate
=?

9,007,199,254,740,993 is the first whole number that an ordinary 64-bit floating-point value cannot store. Add 1 to it in a tool built on plain numbers and you can get an answer that is off by one, with nothing to warn you. Fraction arithmetic multiplies denominators together, so it reaches that size faster than people expect. Every tool on this page does its integer arithmetic with BigInt, which is exact at any length, and each of the six sections has its own Calculate and Clear buttons.

Cross-multiplying, reducing and converting, with exact results

Addition and subtraction cross-multiply: a/b + c/d = (a × d + c × b) / (b × d), then the page divides top and bottom by their greatest common divisor. For the starting values, 2/7 + 3/8 = (2 × 8 + 3 × 7) / 56 = 37/56, which is 0.6607142857. The step display uses the least common denominator instead, 56 here, and shows 16/56 + 21/56. Multiplication is straight across, and division multiplies by the flipped second fraction: 2/3 ÷ 4/9 = (2 × 9) / (3 × 4) = 18/12 = 3/2, or 1 1/2. Adding tops and bottoms is the classic slip, and gives 5/15 for 2/7 + 3/8 when the total must be above 0.66.

Mixed numbers become improper fractions first, with the sign taken from the text: -2 3/4 is −11/4 and 3 5/7 is 26/7. Their sum is (−11 × 7 + 26 × 4) / 28 = 27/28, or 0.9642857143. The Simplify section divides by the GCD it prints: 2/98 reduces by 2 to 1/49, and the mixed number 2 21/98 becomes 217/98, which reduces by 7 to 31/14, or 2 3/14.

Decimal to Fraction reads the digits you type and puts them over a power of ten, then reduces: 1.375 is 1375/1000, divided by 125 to give 11/8, which is 1 3/8. 0.333 stays 333/1000, because 333 and 1000 share no factor. Because the digits are read as text rather than as a floating-point number, even 0.333333333333333333 (18 places) returns 333333333333333333/1000000000000000000 exactly.

Fraction to Decimal shows 10 significant digits: 2/7 reads 0.2857142857 and is flagged as repeating. A reduced fraction terminates only when its denominator has no prime factor except 2 and 5, so 7/20 is 0.35 and 1/1024 is 0.0009765625, while 1/6 and 22/7 repeat. Exactness check: 1/99999989 + 1/99999971 = 199999960/9999996000000319, and 9007199254740993/1 + 1/1 = 9007199254740994.

How to Use This Calculator

  1. In Fraction Calculator, type the numerator and denominator of each fraction (it starts with 2/7 + 3/8), pick +, −, × or ÷, and press Calculate. Whole numbers only; a decimal gives All fields must be whole numbers.
  2. In Mixed Numbers Calculator, type each value as text such as -2 3/4, 3 5/7, 5/7 or 10, then press Calculate. Anything else shows the format reminder.
  3. In Simplify Fractions Calculator, use the Fraction tab (it starts at 2/98) or the Mixed Number tab (2 21/98), then press Calculate. In the Mixed Number tab the sign goes on the whole number and the fractional numerator must be 0 or more.
  4. For Decimal to Fraction, type something like 1.375 and press Calculate. For Fraction to Decimal, enter the numerator and denominator.
  5. In Big Number Fraction Calculator, enter integers of any length, pick the operator and press Calculate. The first five tools accept up to 300 digits per number and show Each number is limited to 300 digits. beyond that.
  6. Use Show further explanation under a result for the step-by-step working. Clear resets only the section you are in.

Frequently Asked Questions

How do I enter a negative mixed number?

Put the minus sign in front of the whole number only, as in -2 3/4. The page reads that as −11/4, so the whole part and the fraction are both negative. The same applies to -0 3/4, which is −3/4.

Why does 0.333 not become 1/3?

Decimal to Fraction converts exactly the digits you typed. 0.333 is 333/1000, and 333 and 1000 have no common factor, so it cannot reduce. Only a typed 0.3333... of infinite length would be 1/3, which no input box can hold.

Does a negative denominator or a zero cause trouble?

A negative denominator is moved to the numerator, so 3/-4 is treated as −3/4. A zero denominator gives Denominator cannot be 0, and dividing by a fraction whose numerator is 0 gives a division-by-zero message.

Should I write 31/14 or 2 3/14?

They are the same number. The page shows the mixed form beside the reduced fraction whenever the result is more than 1. Keep 31/14 if you plan more arithmetic, because a mixed number has to be converted back first.

Does simplifying change the value?

No. Dividing top and bottom by the same GCD changes the size of the pieces counted but not the amount. 2/98 and 1/49 are equal, and the Simplify tool prints the GCD it divided out, here 2.