Egyptian Fraction Calculator

How would ancient Egyptians write your fraction using unit fractions?

Convert fractions into Egyptian form — a sum of distinct unit fractions like the ancient Egyptians used for calculations and record-keeping.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Imagine trying to divide 5 loaves of bread among 12 workers without using modern fractions. Ancient Egyptians solved this by breaking down fractions into unit parts — fractions with 1 in the numerator. Instead of writing 5/12, they would express it as 1/3 + 1/12, meaning each worker gets one-third of a loaf plus one-twelfth of a loaf.

The greedy algorithm mimics how Egyptian mathematicians approached this problem. Start with your fraction and find the largest unit fraction that fits inside it. Subtract that unit fraction and repeat the process with what remains. This method always works because each step reduces the numerator, ensuring the process eventually terminates.

What makes this fascinating is how the algorithm naturally discovers elegant decompositions. The fraction 7/12 becomes 1/2 + 1/12 — immediately revealing that seven-twelfths is just half plus one-twelfth. This visual clarity made Egyptian calculations more intuitive than working with complex fractions directly.

When To Use This
Right tool, right situation

Use Egyptian fraction conversion when studying historical mathematics, understanding ancient calculation methods, or exploring number theory properties. The decomposition reveals hidden relationships within fractions and provides insight into how different mathematical cultures approached the same problems.

This tool is particularly valuable for educators teaching fraction concepts. Students can see how 7/12 breaks down into 1/2 + 1/12, making the size and composition of fractions more concrete. The visual representation helps build intuition about fractional relationships.

Avoid relying on Egyptian fractions for practical modern calculations. While mathematically interesting, they're computationally inefficient compared to decimal or standard fractional arithmetic. The method works best for educational exploration rather than solving real-world mathematical problems where speed and simplicity matter more than historical authenticity.

Common Mistakes
Why results sometimes look wrong

The most common error is trying to use non-unit fractions in the decomposition. Egyptian mathematics strictly required numerators of 1, except for the special case of 2/3 which had its own hieroglyph. Modern students often write 5/12 as 2/6 + 1/12, but this violates the unit fraction constraint.

Another frequent mistake is assuming the greedy algorithm produces the shortest possible decomposition. While it always works, it doesn't always produce the most elegant result. For instance, 4/7 becomes 1/2 + 1/14 using the greedy method, but could also be written as 1/3 + 1/4 + 1/84 — different decompositions for the same fraction.

People also underestimate computational complexity for larger denominators. While 5/12 decomposes quickly, fractions like 31/311 can produce extremely long Egyptian forms with denominators in the millions. Ancient Egyptians likely had tables of preferred decompositions for commonly used fractions to avoid these unwieldy calculations.

The Math
Worked examples and deeper derivation

The mathematical foundation rests on the division algorithm and the fact that any positive fraction less than 1 can be written as a sum of distinct unit fractions. When you have fraction a/b, the greedy algorithm selects the unit fraction 1/⌈b/a⌉, where ⌈⌉ denotes the ceiling function.

For 5/12, we calculate ⌈12/5⌉ = ⌈2.4⌉ = 3, giving us 1/3 as the first term. Subtracting 1/3 from 5/12 requires finding a common denominator: 5/12 - 1/3 = 5/12 - 4/12 = 1/12. Since 1/12 is already a unit fraction, we stop.

The algorithm's efficiency varies dramatically. Simple fractions like 1/2 require just one term, while others like 4/17 produce longer decompositions: 1/5 + 1/29 + 1/1233 + 1/3039345. The length depends on the arithmetic properties of the numerator and denominator, making some fractions naturally more complex in Egyptian form.

Converting 2/7 for Ancient Papyrus Record
Numerator: 2, Denominator: 7
The result 1/4 + 1/28 shows how Egyptian scribes would have recorded 2/7 in their accounting. Each term is a unit fraction (numerator of 1), which made arithmetic operations simpler with their number system.
Splitting 3/8 of a Harvest Among Workers
Numerator: 3, Denominator: 8
The Egyptian form 1/3 + 1/24 demonstrates how ancient administrators divided fractional portions. Instead of dealing with the complex fraction 3/8, they could distribute 1/3 to one group and 1/24 to handle the remainder.
Converting 4/9 for Mathematical Precision
Numerator: 4, Denominator: 9
The result 1/3 + 1/9 shows the elegance of the greedy algorithm. The largest unit fraction (1/3) is taken first, leaving exactly 1/9 as the remainder — a perfect example of how the method naturally finds efficient decompositions.
Expert Unlock
The thing most explanations skip

The greedy algorithm produces decompositions with predictable properties: each successive denominator must be larger than the previous one, and the number of terms is bounded by specific mathematical limits. For fractions with numerator 2, the Erdős–Straus conjecture suggests that every such fraction can be written using at most 3 unit fractions, though this remains unproven for all cases.

How does Egyptian fraction conversion actually work?

Why did ancient Egyptians only use unit fractions?
Egyptian mathematics developed around practical measurements and division of goods. Unit fractions (fractions with numerator 1) made it easier to perform arithmetic operations and record transactions without complex multiplication tables. Their hieroglyphic number system also made unit fractions more natural to write and calculate.
What is the greedy algorithm for Egyptian fractions?
The greedy algorithm repeatedly finds the largest unit fraction that fits into the remaining fraction. For example, with 5/12, the largest unit fraction ≤ 5/12 is 1/3. Subtracting 1/3 leaves 1/12, which is already a unit fraction. This method always terminates and produces a valid Egyptian fraction decomposition.
Are Egyptian fraction decompositions unique?
No, most fractions have multiple valid Egyptian representations. For example, 2/5 can be written as 1/3 + 1/15 or 1/4 + 1/10 + 1/20. The greedy algorithm produces one specific decomposition, but ancient Egyptians sometimes used different methods to find more convenient forms for their calculations.

Need something this doesn't cover?

Suggest a tool — we'll build it →