🧮
🧮 Math & statistics

Egyptian Fractions Calculator (write a fraction as a sum of unit fractions)

Results update as you type.

Your numbers

Understanding the Egyptian fractions calculator — concept and principle

This calculator writes a fraction as a sum of different unit fractions (fractions with numerator 1), the way scribes in ancient Egypt did. It uses the greedy method, shows each step, and reports the number of terms, the largest denominator and the decimal value. Use it for history of mathematics, number puzzles and fraction practice.

Egyptian fractions4/13 = 1/4 + 1/18 + 1/4684/131/41/18← 1/468greedy 14/13 − 1/4 = 3/52greedy 23/52 − 1/18 = 1/468
Each step takes the largest unit fraction that still fits, until nothing is left.

How it is calculated

Greedy (Fibonacci–Sylvester) method, for a remaining fraction p/q:

  1. Take the largest unit fraction that fits: 1/⌈q ÷ p⌉.
  2. Subtract it and repeat with what is left, until the remainder is 0.

The principle

Every positive fraction can be written as a sum of distinct unit fractions. The greedy method always finishes because each step leaves a remainder with a smaller numerator: if p/q − 1/m = (pm − q)/(qm), then pm − q is less than p. The denominators can grow very fast, however; 5/121 needs a denominator with 25 digits. The greedy expansion is also not always the shortest possible one.

Worked example

Default inputs: 4/13.

  1. ⌈13 ÷ 4⌉ = 4: 4/13 − 1/4 = 3/52.
  2. ⌈52 ÷ 3⌉ = 18: 3/52 − 1/18 = 1/468.
  3. The remainder is already a unit fraction: 1/468 − 1/468 = 0.
  4. Egyptian fraction: 1/4 + 1/18 + 1/468, 3 unit fractions, largest denominator 468.
  5. Fraction in lowest terms 4/13, whole-number part 0, decimal 0.3076923077.

How to read the result

Check by adding with a common denominator: 1/4 + 1/18 + 1/468 = 117/468 + 26/468 + 1/468 = 144/468 = 4/13. Other expansions exist; for example 4/13 = 1/4 + 1/26 + 1/52 also works, with smaller denominators than the greedy answer.

Common mistakes

Keep in mind: For some fractions the greedy denominators become enormous; the result is exact but may be impractical to read.

Frequently asked questions

What is an Egyptian fraction?

A sum of different unit fractions, such as 3/4 = 1/2 + 1/4.

Can every fraction be written this way?

Yes, every positive fraction has at least one Egyptian fraction expansion.

Is the greedy method always best?

No; it always works, but other expansions can be shorter or have smaller denominators.

Sources: E. W. Weisstein, "Egyptian Fraction", Wolfram MathWorld

Checked 9 Nov 2026. Weisstein, E. W., “Egyptian Fraction”, Wolfram MathWorld (sums of distinct unit fractions; Fibonacci proved every positive fraction has such a representation; greedy / Fibonacci–Sylvester algorithm with examples such as 4/5 = 1/2 + 1/4 + 1/20).

🧮 All math & statistics tools →🌍 Calculators by country →