# Fraction Calculator

> Add, subtract, multiply and divide fractions and mixed numbers, simplify fractions and turn decimals into fractions — exact answers with steps.

Interactive calculator: https://calculatorsplatform.com/c/fraction/
Category: Math & Statistics Calculators
Calculations run in the browser; inputs can be prefilled through URL parameters and shared with the Share button.

## How fraction arithmetic works

A fraction a/b means *a* parts of a whole that is split into *b* equal parts. The four operations follow simple rules:

> a/b + c/d = (a·d + c·b) / (b·d)

- **Adding and subtracting** needs a common denominator. The calculator uses the *least* common denominator, LCD = LCM(b, d), so the numbers stay as small as possible. Each fraction is rewritten over the LCD, then the numerators are added or subtracted.
- **Multiplying** is the easiest: multiply the numerators together and the denominators together, a/b × c/d = ac/bd.
- **Dividing** means multiplying by the reciprocal: a/b ÷ c/d = a/b × d/c. Dividing by zero is undefined.

When you add a third fraction, the calculator follows the normal order of operations, so multiplication and division are done before addition and subtraction. All arithmetic is exact — it uses arbitrary-size integers, never rounded decimals.

## Simplifying fractions and mixed numbers

A fraction is in **lowest terms** when its numerator and denominator share no common factor except 1. To simplify, divide both by their greatest common divisor (GCD). The calculator finds the GCD with Euclid's algorithm: divide the larger number by the smaller, replace the larger by the remainder, and repeat until the remainder is 0.

For example, to simplify 84/126: 126 = 1 × 84 + 42, then 84 = 2 × 42 + 0, so the GCD is 42 and 84/126 = 2/3.

An **improper fraction** (numerator larger than denominator) can also be written as a **mixed number**: 9/4 = 2 1/4, because 4 goes into 9 twice with 1 left over. To type a mixed number, put a space between the whole part and the fraction, as in `1 1/2`. A negative mixed number such as `-1 1/2` means −(1 + 1/2) = −3/2.

## Converting between decimals and fractions

A terminating decimal becomes a fraction by writing its digits over a power of ten: 0.625 has three decimal places, so it equals 625/1000, which simplifies to **5/8**.

Repeating decimals are also exact fractions. Type the repeating block in parentheses — `0.(3)` for 0.333…, `0.1(6)` for 0.1666…. The trick is to multiply by powers of ten so that the repeating tails line up and cancel: if x = 0.1666…, then 100x − 10x = 16.666… − 1.666… = 15, so x = 15/90 = **1/6**.

Going the other way, every fraction gives either a terminating or a repeating decimal. It terminates only when the simplified denominator has no prime factors other than 2 and 5 (like 8 = 2^3), otherwise the digits repeat forever, which the calculator marks with parentheses: 1/7 = 0.(142857).

**Worked example (the default):** 1 1/2 + 3/4. Convert 1 1/2 to 3/2. The LCD of 2 and 4 is 4, so 3/2 = 6/4. Then 6/4 + 3/4 = 9/4 = **2 1/4** = 2.25.

## Frequently asked questions

### How do I enter a mixed number?

Type the whole number, a space, then the fraction: 2 3/4. For a negative mixed number put the minus sign in front: -2 3/4.

### Why use the least common denominator instead of multiplying the denominators?

Multiplying denominators always works, but it can produce large numbers that must be simplified afterwards. The least common denominator keeps the working small, and the final answer is the same either way.

### Can I divide by a fraction that equals zero?

No. Dividing by zero is undefined, and a denominator of 0 is not allowed either. The calculator shows a warning instead of a result.

### How do I convert 0.333… to a fraction?

Choose Decimal → fraction and type 0.(3), with the repeating digit in parentheses. The result is exactly 1/3. Typing 0.333 instead gives 333/1000, because a finite decimal is a different number.

## Related calculators

- [GCF & LCM Calculator](https://calculatorsplatform.com/c/gcf-lcm/index.md)
- [Percentage Calculator](https://calculatorsplatform.com/c/percentage/index.md)
- [Ratio Calculator](https://calculatorsplatform.com/c/ratio/index.md)
- [Scientific Calculator](https://calculatorsplatform.com/c/scientific/index.md)
- [Prime Factorization Calculator](https://calculatorsplatform.com/c/prime-factorization/index.md)
- [Significant Figures Calculator](https://calculatorsplatform.com/c/sig-figs/index.md)

---
Source: CalculatorsPlatform (https://calculatorsplatform.com/c/fraction/). Last reviewed 2026-11-25. Please link to the calculator page when citing.
