# Fraction Calculator

> Add, subtract, multiply, divide or compare fractions and mixed numbers like 1 1/2, then see each step, the lowest-terms answer and its decimal.

Use it online (free, runs in your browser): https://directory.milunir.com/math-calculators/basic-math/fraction-calculator/

Type two fractions, pick +, −, × or ÷, and the result appears in lowest terms with its mixed-number and decimal forms. Example: 1/2 + 1/3 uses the common denominator 6, so 3/6 + 2/6 = 5/6, about 0.833333. The One fraction mode simplifies, converts to a mixed number, flips to the reciprocal or lists equivalents.

Homework, recipes and woodworking cuts all run into fractions such as 3/8 or 2 1/4. This calculator keeps everything as exact whole-number ratios, so 1/3 stays 1/3 instead of turning into 0.333 too early. In the Two fractions mode you add, subtract, multiply, divide or compare; mixed numbers and whole numbers are accepted as typed, for example 2 1/3 or 5. The One fraction mode reduces a fraction by its greatest common divisor, rewrites an improper fraction as a mixed number, gives the reciprocal, or lists nine equivalent fractions you can copy. Every answer shows the working line by line, the way a teacher would mark it. One limit: inputs must be fractions or whole numbers with parts up to 1,000,000; decimals such as 0.75 are not read, so write 3/4 instead.

## How to use

1. **Choose a mode**: Two fractions for arithmetic and comparison; One fraction to simplify, convert or find equivalents.
2. **Type the fractions**: Use a slash, as in 5/8. For a mixed number leave a space between the whole part and the fraction: 3 1/4. A minus sign in front makes it negative.
3. **Pick the operation or form**: Tap +, −, ×, ÷ or Compare, or choose Simplest form, Mixed number, Reciprocal or Equivalent fractions.
4. **Read the answer and steps**: The result is in lowest terms; below it are the other form, the decimal and each step of the working.

## Examples

### 1/2 + 1/3

- Mode: Two fractions
- First fraction: 1/2
- Operation: +
- Second fraction: 1/3

Result: Result: 5/6 Other form: 5/6 Decimal: 0.833333

The common denominator is 6, so the halves become 3/6 and the thirds become 2/6, giving 5/6.

### Simplify 8/12

- Mode: One fraction
- Fraction: 8/12
- Show it as: Simplest form

Result: Result: 2/3 Other form: 2/3 Decimal: 0.666667

8 and 12 share the factor 4, so dividing both by 4 leaves 2/3 in lowest terms.

### 1 1/2 × 2 2/3

- Mode: Two fractions
- First fraction: 1 1/2
- Operation: ×
- Second fraction: 2 2/3

Result: Result: 4 Other form: 4 Decimal: 4

Mixed numbers become improper fractions first: 3/2 × 8/3 = 24/6, which reduces to the whole number 4.

## How it works

`a/b + c/d = (a·d + c·b) ÷ (b·d); a/b × c/d = (a·c) ÷ (b·d); a/b ÷ c/d = (a·d) ÷ (b·c)`

- `a, c`: numerators (top numbers)
- `b, d`: denominators (bottom numbers, never 0)

Each entry is first turned into an improper fraction: 2 1/3 becomes (2×3 + 1)/3 = 7/3. Addition and subtraction cross-multiply onto the shared denominator b·d; multiplication multiplies straight across; division multiplies by the reciprocal of the second fraction (keep, change, flip). Comparison cross-multiplies and checks which product is bigger. The answer is then divided top and bottom by the greatest common divisor, found with Euclid's algorithm, which gives the lowest-terms form MathWorld calls a reduced fraction. A mixed number comes from whole-number division: 7/4 is 1 remainder 3, so 1 3/4.

Sources:

- [Fraction](https://mathworld.wolfram.com/Fraction.html), Wolfram MathWorld
- [Reduced Fraction](https://mathworld.wolfram.com/ReducedFraction.html), Wolfram MathWorld
- [Mixed Fraction](https://mathworld.wolfram.com/MixedFraction.html), Wolfram MathWorld

## When not to use it

- Repeating decimals such as 0.333… need converting to a fraction before they can be entered.
- Algebraic fractions with letters, like x/2, are outside what this calculator reads.
- Ratios with more than two parts, such as 2:3:5, are not fractions and need a ratio tool.

## Common mistakes

- Adding the denominators: 1/2 + 1/3 is 5/6, not 2/5.
- Flipping the first fraction instead of the second when dividing.
- Typing 11/2 when you mean the mixed number 1 1/2; the space matters.
- Forgetting to convert a mixed number to an improper fraction before multiplying.

## Questions

### How do I simplify a fraction to lowest terms?

Find the greatest common divisor of the top and bottom numbers and divide both by it. For 18/24 the divisor is 6, giving 3/4. In the One fraction mode choose Simplest form and the steps show the divisor used.

### Can I use whole numbers in the fraction calculator?

Yes. Type a whole number such as 4 on its own and it is read as 4/1. So 4 − 3/4 becomes 16/4 − 3/4 = 13/4, shown also as the mixed number 3 1/4.

### How do I enter a mixed number?

Write the whole part, a space, then the fraction: 2 3/5. It is turned into the improper fraction 13/5 before any arithmetic, and answers larger than 1 are also shown back as mixed numbers.

### How do I calculate equivalent fractions?

Multiply the top and bottom by the same whole number. 2/3 times 2/2 is 4/6, times 5/5 is 10/15. Choose Equivalent fractions in the One fraction mode to get a table of multipliers 2 to 10 with a copy button on each row.

### How do you compare fractions with different denominators?

Cross-multiply. For 5/8 and 3/5, 5×5 = 25 and 3×8 = 24, so 5/8 is larger. Pick Compare in the Two fractions mode; the result shows the sign and the exact difference, here 1/40.

### How do I divide fractions with whole numbers?

Write the whole number over 1, then multiply by the reciprocal. 6 ÷ 3/4 = 6/1 × 4/3 = 24/3 = 8. The step list shows the keep, change, flip line for every division.

### How do I turn an improper fraction into a mixed number?

Divide the top by the bottom: the quotient is the whole part and the remainder sits over the same denominator. 17/5 is 3 remainder 2, so 3 2/5. Choose Mixed number in the One fraction mode.

### How do I calculate the reciprocal of a fraction?

Exchange the numerator and denominator: the reciprocal of 3/7 is 7/3. For a mixed number, convert first, so 1 1/4 = 5/4 and its reciprocal is 4/5. Zero has no reciprocal.

## Use from code or an AI agent

Free JSON API, no key needed. The answer is in `result.stats.primary`.

```bash
curl -X POST https://api.tools-directory.workers.dev/v1/tools/fraction-calculator \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"mode":"two","a":"1/2","op":"add","b":"1/3"}}'
```

- Inputs (JSON Schema): https://directory.milunir.com/api/v1/tools/fraction-calculator.json
- MCP server: https://api.tools-directory.workers.dev/mcp (tool `fraction_calculator`)
- Docs: https://directory.milunir.com/docs/
