Least Common Denominator Calculator
Least Common Denominator Calculator
This calculator finds the least common denominator (LCD) of two, three, or four fractions — the smallest number that can serve as a common denominator for all of them — and rewrites each fraction onto it. It is the essential step for adding or comparing fractions with different denominators.
The LCD is not a special new kind of math; it is the least common multiple (LCM) of the denominators[mathworld-lcd][libretexts-prealgebra]. If you can add 1/2 and 1/3, you already know this: you rewrite 1/2 as 3/6 and 1/3 as 2/6 because 6 is the smallest number both 2 and 3 divide into. The calculator automates that reasoning for up to four fractions, showing the equivalent fractions and the sum.
The LCM Calculator covers the underlying number-theory concept, and the Adding Fractions Calculator does the full addition — but the LCD step itself, rewriting fractions onto a shared denominator, deserves its own focused tool[khan-adding-fractions].
Enter two, three, or four fractions, and the results update instantly.
- Choose the number of fractions — pick 2, 3, or 4 from the selector.
- Enter each fraction — a numerator and a denominator for each. Use negative values freely (the calculator pushes the sign onto the numerator).
- Read the results — the featured card shows the LCD, followed by the equivalent fractions rewritten onto that denominator, the sum, and the list of denominators used.
Example 1 — coprime denominators. Enter 1/2 and 1/3. The denominators 2 and 3 share no common factor, so the LCD is their product: 6. The fractions rewrite as 3/6 and 2/6, and their sum is 5/6[chilimath-lcm].
Example 2 — shared factors. Enter 3/4 and 5/6. The denominators 4 (2²) and 6 (2×3) share a factor of 2, so the LCD is 12, not 24. The fractions rewrite as 9/12 and 10/12, summing to 19/12[libretexts-prealgebra].
Example 3 — three fractions. Enter 1/6, 1/8, and 1/12. The denominators are 6 (2×3), 8 (2³), and 12 (2²×3); taking each prime to its highest exponent gives 2³×3 = 24. The fractions rewrite as 4/24, 3/24, and 2/24, summing to 9/24 = 3/8 after reduction[mathworld-lcm].
Example 4 — when the LCD equals a denominator. Enter 1/2 and 1/6. The denominators are 2 and 6, and since 6 is already a multiple of 2, the LCD is simply 6 — not 12. Only 1/2 needs rewriting (to 3/6); 1/6 stays as it is. This is a common real-world case: a recipe calls for 1/2 cup and 1/6 cup, and the smallest measuring cup that handles both is the 1/6 cup's denominator, 6. Recognizing when one denominator already divides the other saves a step.
Example 5 — a practical baking case. A cookie recipe needs 2/3 cup of sugar, 3/4 cup of flour, and 1/8 cup of milk. The denominators 3, 4, and 8 factor as 3, 2², and 2³; the LCD is 2³ × 3 = 24. The amounts become 16/24, 18/24, and 3/24, which sum to 37/24 cups — about 1 cup plus 13/24. This is exactly how you'd scale the recipe or measure it in a single unit, and it shows why the LCD matters beyond pure arithmetic: it is the least common denominator in every sense, the smallest unit that describes all the quantities at once.
The least common denominator of a collection of fractions is the least common multiple of their denominators — nothing about the numerators matters[mathworld-lcd]:
Computing the LCM — two equivalent methods:
Prime factorization — factor each denominator and take every prime to its highest exponent:
GCD formula — faster to compute programmatically:
For three or more denominators, apply LCM pairwise — it is associative:
Rewriting a fraction onto the LCD — multiply numerator and denominator by (LCD ÷ denominator):
The multiplier L/b is always a whole number because L is a multiple of b, and multiplying by (L/b)/(L/b) = 1 preserves the fraction's value[libretexts-prealgebra].
Let's compute the LCD and the sum step by step.
Step 1 — factor the denominators. 8 = 2³ and 12 = 2² × 3.
Step 2 — take the highest exponent of each prime. 2³ (from 8) and 3 (from 12) → LCD = 2³ × 3 = 24.
Step 3 — rewrite each fraction. For 7/8: 24 ÷ 8 = 3, so multiply by 3/3 → 21/24. For 5/12: 24 ÷ 12 = 2, so multiply by 2/2 → 10/24.
Step 4 — add the numerators. 21 + 10 = 31, so the sum is 31/24 — a fraction larger than 1, which is perfectly fine (it is 1 + 7/24).
Notice what happened in step 3: if you had blindly multiplied the denominators (8 × 12 = 96), the fractions would rewrite as 84/96 and 40/96 — the same answer in a clunkier form. The LCD finds the smallest workable denominator, which keeps the numbers small and the arithmetic clean[purplemath-lcm].
The table shows well-known fraction pairs with their LCDs, so you can verify the calculator:
| Fractions | Denominators | Prime work | LCD | Rewritten | Sum |
|---|---|---|---|---|---|
| 1/2, 1/3 | 2, 3 | coprime → product | 6 | 3/6, 2/6 | 5/6 |
| 1/4, 1/6 | 4, 6 | 2², 2·3 → 2²·3 | 12 | 3/12, 2/12 | 5/12 |
| 2/3, 3/5 | 3, 5 | coprime → product | 15 | 10/15, 9/15 | 19/15 |
| 3/4, 5/6 | 4, 6 | 2², 2·3 → 2²·3 | 12 | 9/12, 10/12 | 19/12 |
| 7/8, 5/12 | 8, 12 | 2³, 2²·3 → 2³·3 | 24 | 21/24, 10/24 | 31/24 |
| 1/6, 1/8, 1/12 | 6, 8, 12 | 2·3, 2³, 2²·3 → 2³·3 | 24 | 4/24, 3/24, 2/24 | 9/24 = 3/8 |
Two patterns stand out. First, coprime denominators (2 and 3, 3 and 5) force the LCD to be their product — there is no smaller common multiple. Second, denominators that share factors produce an LCD smaller than the product: 4 and 6 give 12 (not 24), and 8 and 12 give 24 (not 96). The prime-factorization rule — take each prime to its highest exponent — captures both cases[chilimath-lcm].
- Coprime denominators → just multiply. If the denominators share no common factor, the LCD is their product. This is the fastest path when you spot it (2 and 3 → 6, 5 and 7 → 35).
- Shared factors → don't multiply blindly. The whole point of the LCD is to avoid needlessly large numbers. If 4 and 6 share a factor of 2, the LCD is 12, not 24. The calculator always finds the smallest.
- Rewrite, don't reduce. After rewriting fractions onto the LCD, do NOT simplify them — reducing loses the common denominator you worked to create. Reduction happens only at the very end, on the final sum[libretexts-prealgebra].
- A sum larger than 1 is normal. 19/12, 31/24 — fractions that sum past 1 are written as improper fractions or mixed numbers depending on context. The calculator shows the improper form; convert to a mixed number if your problem calls for it.
- The LCD is the LCM of denominators only. Numerators never participate in finding the LCD. If you catch yourself factoring numerators, stop — only the bottom numbers matter[mathworld-lcd].
- Use the LCD to compare fractions. Two fractions with the same denominator are trivial to order (larger numerator = larger value). Rewriting to the LCD turns "which is bigger, 7/8 or 5/12?" into comparing 21/24 and 10/24 — no decimal approximations needed.
- It finds the LCD and the sum, not the reduced answer. The rewritten fractions are left un-reduced on purpose (that is the correct intermediate step). If you need the final sum in lowest terms, reduce the result yourself or use the Simplify Fractions Calculator.
- Inputs must be rational fractions. The calculator works with integer numerators and denominators. Decimals (0.5, 0.75) are not accepted as fractions — convert them to fractions first.
- Large inputs can overflow. The LCM grows with the product of the denominators; very large denominators (millions) can produce enormous LCDs. The calculator handles realistic school and work examples comfortably.
- Zero denominators are invalid. A denominator of zero makes the fraction undefined — the calculator rejects it rather than returning a meaningless result[wikipedia-denominator].
- Sign handling normalizes to the numerator. If you enter a negative denominator (e.g., 1/−2), the calculator moves the sign up to give −1/2. This keeps the LCD computation clean and matches standard notation.
- The LCD is not always smaller than the original denominators. It is a multiple of every denominator, so it is always at least as large as the largest one. For 1/6 and 1/2, the LCD is 6 — equal to the larger denominator. It only exceeds the largest denominator when the denominators are unrelated (coprime), like 1/2 and 1/3 giving 6.
- Fractions in lowest terms are expected. If you enter a fraction that can be reduced (e.g., 2/4), the calculator still computes correctly — the LCD of 4 and 6 is 12 whether you enter 1/2 or 2/4. But entering reduced forms keeps the intermediate numbers smaller and the arithmetic cleaner.
- ❓ What is the difference between LCD and LCM?
- ✅ They are the same idea in different contexts. The least common denominator (LCD) is the least common multiple (LCM) of the denominators of a set of fractions. When you find the smallest number that two denominators both divide into, you are computing an LCM — the LCD is just that LCM applied to fraction denominators.
- ❓ How do I find the least common denominator?
- ✅ Factor each denominator into primes, then multiply each prime taken to its highest exponent that appears in any factorization. Equivalently, use LCM(a,b) = |a·b| / GCD(a,b) pairwise. For 4 and 6: 4 = 2², 6 = 2·3, so LCD = 2²·3 = 12. The calculator does this automatically.
- ❓ Why is the LCD not always the product of the denominators?
- ✅ Because denominators can share factors. The product includes each shared factor twice, overcounting it. For 4 and 6, the product is 24, but the smallest common multiple is 12 — the shared factor 2 is only needed once. Shared factors are the reason the LCD is smaller than the product.
- ❓ Can the LCD be found for more than two fractions?
- ✅ Yes. The LCM is associative: LCD(a, b, c) = LCM(LCM(a, b), c). Find the LCM of the first two denominators, then take the LCM of that result with the third, and so on. The calculator supports up to four fractions.
- ❓ What does it mean to rewrite a fraction with the LCD?
- ✅ It means multiplying the numerator and denominator by the same factor so the denominator becomes the LCD without changing the fraction's value. To rewrite 7/8 onto 24, multiply by 3/3 to get 21/24. The rewritten fraction equals the original but now shares a denominator with the others.
- ❓ Why is the LCD useful for comparing fractions?
- ✅ Fractions with the same denominator are trivial to compare — the larger numerator is the larger value. Rewriting 7/8 and 5/12 onto 24 gives 21/24 and 10/24, which are instantly comparable. Without a common denominator you'd need decimal or cross-multiplication tricks.
- ❓ What if a denominator is zero or negative?
- ✅ A zero denominator makes the fraction undefined and is rejected. A negative denominator is fine but is normalized by moving the sign to the numerator (1/−2 becomes −1/2), so the LCD computation always uses positive denominators.
- ❓ What is the least common denominator of 1/2 and 1/3?
- ✅ 6. The denominators 2 and 3 are coprime (they share no common factor), so the LCD is their product: 2 × 3 = 6. Rewriting gives 3/6 and 2/6, and their sum is 5/6.
References
- [1]Wolfram MathWorld. (n.d.). Least Common Multiple.
- [2]Wolfram MathWorld. (n.d.). Least Common Denominator.
- [3]Wikipedia. (2026). Least Common Multiple.
- [4]Wikipedia. (2026). Denominator.
- [5]Khan Academy. (n.d.). Adding Fractions with Unlike Denominators.
- [6]LibreTexts (OpenStax Prealgebra). (n.d.). Add and Subtract Fractions with Different Denominators.
- [7]Purplemath. (n.d.). LCM and GCF.
- [8]ChiliMath. (n.d.). Finding the Least Common Multiple.
Last updated: August 17, 2026
UnByte — Independent Software Engineering
Every calculator references authoritative sources — Editorial policy
