AI Tools Free

Fraction Calculator

Add, subtract, multiply, or divide any two fractions (a/b and c/d) with integer terms from -1,000,000,000 to 1,000,000,000 in this fraction calculator. Every calculation runs in your browser using exact BigInt rational arithmetic and automatically simplifies the answer to lowest terms.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

How this calculator with fractions adds, subtracts, multiplies, and divides

Instead of converting fractions into rounded decimals, this calculator with fractions keeps your numerator and denominator in exact BigInt integers (a, b, c, d) and reduces the final ratio by their greatest common divisor (gcd(p, q)). If you only need to reduce a single ratio, open our Fraction Simplifier.

Add/Subtract: p = a×d ± c×b, q = b×d (see also our LCM Calculator). Multiply: p = a×c, q = b×d. Divide: p = a×d, q = b×c (for c != 0).

Before printing p/q, fraction(p, q) flips the sign if q < 0 so the denominator is always positive, then divides both p and q by gcd(p, q) (the same Euclidean reduction used in our GCF Calculator).

Diagram showing cross-multiplication (1×6 + 1×3) / (3×6) = 9/18 simplified by gcd(9, 18) = 9 to 1/2
Cross-multiplying 1/3 + 1/6 gives 9/18, which reduces by gcd(9, 18) = 9 to 1/2.

Fraction Calculator Operations & Worked Examples Table

Review the exact algebraic formulas, unreduced intermediate numerators/denominators, greatest common divisors (GCD), and reduced p/q outputs across all four operations.

Operation / ScenarioInput Fractions (a/b op c/d)Algebraic FormulaUnreduced p / qGCD(p, q)Reduced Output (p/q)
Add (preloaded default)1/3 + 1/6(a×d + c×b) / (b×d)9 / 1891/2
Add (unlike coprime denominators)3/8 + 2/7(3×7 + 2×8) / (8×7)37 / 56137/56
Subtract (positive difference)5/6 - 1/4(5×4 - 1×6) / (6×4)14 / 2427/12
Subtract (negative result)1/4 - 3/4(1×4 - 3×4) / (4×4)-8 / 168-1/2
Multiply (proper fractions)2/3 × 9/16(a × c) / (b × d)18 / 4863/8
Multiply (negative × negative)-3/7 × -14/9(-3 × -14) / (7 × 9)42 / 63212/3
Divide (reciprocal rule)3/4 ÷ 9/8(a × d) / (b × c)24 / 36122/3
Whole number + fraction2/1 + 3/8(2×8 + 3×1) / (1×8)19 / 8119/8
Mixed numbers (1 1/2 × 2 2/3)3/2 × 8/3(3 × 8) / (2 × 3)24 / 664/1
Zero sum3/7 + -3/7(3×7 + -3×7) / 490 / 49490/1

How to do fractions on a calculator in 3 steps

Compute and simplify any two-fraction expression in three steps.

Enter the first fraction (a/b)

Type whole numbers into First numerator (1) and First denominator (3). Every term accepts integers from -1,000,000,000 to 1,000,000,000.

Input and settings
Fraction Calculator inputs showing 1 and 3 entered for the first fraction 1/3
Step 1: Enter the integer numerator and denominator for the first fraction (a/b).

Select Add, Subtract, Multiply, or Divide

Choose your arithmetic operation from the Operation dropdown, then enter Second numerator (1) and Second denominator (6).

Tool result
Fraction Calculator with Add selected, 1/6 as the second fraction, and 1/2 in the result panel
Step 2: Choose Add, Subtract, Multiply, or Divide and enter the second fraction (c/d).

Click Calculate result and export

Select Calculate result to display the reduced fraction (1/2), then click Copy or Download (result.txt) to save your answer.

Review the details
Fraction Calculator result panel showing 1/2 with Copy and Download result.txt buttons
Step 3: Copy the simplified fraction p/q or download result.txt.

Worked examples: fraction calculator for unlike denominators and whole numbers

See how the calculator handles unlike denominators, reciprocal division, and whole or mixed numbers.

Adding fractions with unlike denominators

With the default 1/3 + 1/6, the calculator cross-multiplies (1 × 6 + 1 × 3) / (3 × 6) = 9/18 and divides both terms by gcd(9, 18) = 9 to return 1/2. If you want the decimal or percentage equivalent (0.5 or 50%), run 1/2 through our Fraction To Decimal Converter or Percentage Calculator.

Worked example cross-multiplying 1/3 + 1/6 = 9/18 and reducing to 1/2
Cross-multiplying 1/3 + 1/6 gives 9/18, which reduces by gcd(9, 18) = 9 to 1/2.

Dividing fractions via reciprocal multiplication

To divide 3/4 by 9/8, select Divide with a = 3, b = 4, c = 9, d = 8. Flipping the second fraction to 8/9 and multiplying gives (3 × 8) / (4 × 9) = 24/36. Canceling their greatest common divisor 12 produces 2/3. You can compare proportional scalings in our Ratio Calculator.

Worked example dividing 3/4 by 9/8 via reciprocal multiplication 3/4 × 8/9 = 24/36 = 2/3
Dividing 3/4 by 9/8 multiplies by the reciprocal 8/9 to yield 24/36 = 2/3.

Using whole numbers and mixed numbers

To include a whole number W (such as 5 - 3/8), enter 5 as the numerator and 1 as the denominator (5/1 - 3/8 = 37/8). To enter a mixed number W n/d (such as 2 3/4), convert it to an improper numerator (W × d + n) = (2 × 4 + 3) = 11 over 4 (11/4). If you are starting from a decimal like 2.75, convert it to 11/4 first in the Decimal To Fraction Converter.

Worked example entering whole number 5 as 5/1 and mixed number 2 3/4 as 11/4
Enter whole numbers W as W/1 and mixed numbers W n/d as improper ratios (W×d + n)/d.

How to read the reduced fraction output and sign normalization

Every answer returned in the Your result panel follows three formatting conventions:

Both proper fractions (7/12) and improper fractions (37/56 or 19/8, where |p| > q) are reduced until gcd(|p|, q) = 1. Whenever the denominator divides evenly into the numerator (such as 3/2 × 8/3 = 4/1 or 1/3 - 1/3 = 0/1), fraction(p, q) outputs the explicit rational form 4/1 or 0/1 so you can verify that no remainder was lost.

If you enter a negative denominator (such as 1 / -3 + 1 / 6), the reducer normalizes if (q < 0n) { p = -p; q = -q; } so any minus sign always appears on the numerator (-1/6), never on the denominator.

Diagram showing lowest-terms improper fractions, /1 whole-number ratios, and numerator sign normalization
Outputs are reduced by gcd(p, q), whole numbers print as p/1, and negative signs normalize to the numerator.

Fraction calculator input limits (-1B to 1B) and zero-divisor rules

Check these validation rules before clicking Calculate result:

First, each of the four fields (a, b, c, d) requires a whole number (step='1') with magnitude at most 1,000,000,000. Because a × d ± c × b can reach 2 × 10^18 (exceeding JavaScript's 2^53 - 1 = 9.007 × 10^15 safe float integer limit), the tool promotes all four inputs to BigInt before multiplying so intermediate numerators and denominators never suffer precision loss.

Second, division by zero is undefined in rational arithmetic. Setting First denominator (b = 0) or Second denominator (d = 0) immediately displays 'Denominators cannot be zero.' Choosing Divide when Second numerator c = 0 triggers 'Cannot divide by a zero fraction.' because flipping 0/d would put 0 in the divisor's denominator.

Summary of ±1,000,000,000 integer bounds, BigInt overflow protection, and b != 0, d != 0, c != 0 division guards
Accepts integers from -1B to 1B in BigInt and enforces b != 0, d != 0, and c != 0 on division.

Frequently asked questions about fraction arithmetic

Answers about using Fraction Calculator and understanding its results.

How do you add or subtract two fractions with different denominators?

Cross-multiply each numerator by the other fraction's denominator, add or subtract those two products for the new numerator (a × d ± c × b), and multiply the two denominators (b × d). Finally, divide both top and bottom by their greatest common divisor (GCD) to simplify the result.

How do you divide one fraction by another?

Use the reciprocal rule ('keep, change, flip'): keep the first fraction a/b, change division to multiplication, and flip the second fraction c/d into d/c. Multiply across to get (a × d) / (b × c) and simplify by gcd(a × d, b × c).

How do I enter a whole number or mixed number in this fraction calculator?

Any standalone integer W equals W/1, so put the whole number in the numerator box and 1 in the denominator box. When your problem starts with a mixed fraction like 3 2/7, rewrite it as an improper ratio first ((3 × 7 + 2) / 7 = 23/7) and enter 23 over 7.

Why does my whole-number answer show /1 at the end (like 2/1 or 0/1)?

The output formatter (fraction(p, q)) always prints the reduced numerator and denominator as p/q. A denominator of 1 means the fraction simplified to an exact whole number (2/1 = 2, 0/1 = 0).

How do I turn a reduced fraction answer into a decimal or mixed fraction?

Paste the numerator and denominator into our Fraction To Decimal Converter to get up to 12 significant decimal digits (7/12 = 0.583333333333). If your answer is top-heavy (19/8), integer division 19 ÷ 8 gives the whole part 2 and remainder 3, which writes out as 2 3/8.

Can I enter negative fractions in the calculator?

Yes. All four fields accept negative integers down to -1,000,000,000. Whether you put the minus sign on the numerator (-1 / 3) or the denominator (1 / -3), the calculator normalizes the output so the denominator is always positive.

Calculate and simplify two fractions now

Choose another tool for your next calculation, conversion, or text task.

Calculate result