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.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
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.
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?
Need something this doesn't cover?
Suggest a tool — we'll build it →