What is a fraction calculator?
A fraction calculator does the four operations (add, subtract, multiply and divide) on fractions and mixed numbers, simplifies the result and converts it to the form you need: a mixed number such as 1 1/5, an improper fraction such as 6/5, a decimal such as 1.2 or a percentage such as 120%. It is useful for school homework, for recipes (3/4 cup plus 2/3 cup), for woodworking and any job measured in inches, and for checking an answer you did by hand.
This tool works with exact integers, never with floating-point approximations, so 1/3 stays 1/3 and not 0.3333333. It also shows each step in words: the common denominator, the rewritten fractions, the sum of the numerators and the final division by the greatest common divisor. Decimals with repeating digits are written with the repeating block in parentheses, so 1/3 is shown as 0.(3) and 2/7 as 0.(285714). Numbers can have up to 40 digits. Everything runs in your browser.
You can type a fraction (3/4), a mixed number (1 3/4), a whole number (5) or a decimal (0.75, which is read exactly as 75/100). Negative values are accepted.
How to calculate with fractions
- In the "Calculate" tab, type the first fraction, choose the operation (add, subtract, multiply, divide) and type the second fraction. An example is already filled in.
- Read the simplified result and its forms: mixed number, improper fraction, decimal and percentage.
- Follow "Step by step". For addition and subtraction the tool finds the least common multiple of the two denominators, rewrites both fractions over it and combines the numerators. For multiplication it multiplies tops and bottoms. For division it multiplies by the reciprocal of the second fraction.
- To only simplify or convert one value, use the "Simplify and convert" tab and type a single fraction, mixed number or decimal.
- Copy the result.
The rules, with a/b and c/d: a/b + c/d = (a×d + c×b) / (b×d), then simplify. a/b × c/d = (a×c) / (b×d). a/b ÷ c/d = (a×d) / (b×c). To simplify, divide top and bottom by their greatest common divisor, which you can compute with the GCD and LCM calculator.
Examples
Adding with different denominators: 1/2 + 1/3
The least common multiple of 2 and 3 is 6. Rewrite as 3/6 + 2/6 = 5/6, which is 0.8(3) as a decimal (0.8333...).
Subtracting: 3/4 − 1/6
The common denominator is 12: 9/12 − 2/12 = 7/12, which is 0.58(3).
Multiplying: 2/3 × 4/5
Multiply the tops and the bottoms: 8/15, already in lowest terms. As a decimal it is 0.5(3).
Dividing: 3/4 ÷ 5/8
Multiply by the reciprocal: 3/4 × 8/5 = 24/20, which simplifies (GCD 4) to 6/5 = 1 1/5 = 1.2 = 120%.
Mixed numbers: 1 3/4 + 2 1/2
1 3/4 is 7/4 and 2 1/2 is 5/2. Over 4: 7/4 + 10/4 = 17/4 = 4 1/4 = 4.25.
Decimal to fraction: 0.75
0.75 is 75/100, which simplifies to 3/4 and is 75%. And 7/3 is the mixed number 2 1/3, or 2.(3) as a decimal.
Common mistakes
- Adding denominators. 1/2 + 1/3 is not 2/5. The denominators must be made equal first.
- Forgetting to simplify. 6/8 and 3/4 are the same number. The tool always shows the simplified form.
- Dividing without flipping. Dividing by a fraction means multiplying by its reciprocal.
- Zero in the denominator. 3/0 is not a number. The tool tells you the bottom number cannot be 0, and dividing by a fraction equal to 0 is also refused.
- Rounding the decimal. 0.33 is not 1/3. Use the repeating notation 0.(3) when you need exactness.
- Writing a mixed number as 13/4. Type 1 3/4 with a space: that is 7/4, not 13/4.
FAQ
How do I add fractions with different denominators?
Find a common denominator (the least common multiple of the denominators), rewrite each fraction over it, add the numerators and simplify. The calculator shows these steps for your numbers.
How do I turn a fraction into a decimal or a percentage?
Divide the numerator by the denominator: 3/4 = 0.75 = 75%. If the division never ends, the digits repeat, as in 1/3 = 0.(3). To work with percentages directly, see the percentage calculator.
How do I convert an improper fraction into a mixed number?
Divide the top by the bottom: the quotient is the whole part and the remainder is the new numerator. 7/3 is 2 with remainder 1, so 2 1/3.
Can it handle negative fractions?
Yes. Put the minus sign at the start (-5/4) and the result is shown as -1 1/4 and -1.25.
What if my problem is a proportion?
For "if 3 cost 12, how much do 5 cost", use the rule of three tool.
Fractions in code
JavaScript
const gcd = (a, b) => (b === 0n ? a : gcd(b, a % b));
const add = ([a, b], [c, d]) => {
const n = a * d + c * b, m = b * d, g = gcd(n, m);
return [n / g, m / g];
};
console.log(add([1n, 2n], [1n, 3n])); // [5n, 6n]Python
from fractions import Fraction
print(Fraction(3, 4) / Fraction(5, 8)) # 6/5
print(Fraction("0.75")) # 3/4