Lowest common denominator calculator
Find the smallest denominator a list of fractions can share: for 1/2, 1/3 and 1/4 it is 12, which gives 6/12, 4/12 and 3/12. Enter from 2 to 40 fractions and get each one rewritten, ready to add or compare. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
The lowest common denominator of a list of fractions is the smallest positive integer that every given denominator divides. Once you have that number you can rewrite each fraction with the same bottom term and then add, subtract, or compare them without mixing unlike parts. This lowest common denominator calculator accepts two or more fractions, takes the least common multiple of their denominators with the Euclidean algorithm, and returns the common denominator together with each fraction rewritten over that shared bottom.
What the lowest common denominator is and how it is computed
When two or more fractions sit on different bottoms, you cannot add the numerators until every term uses the same denominator. That shared bottom is a common denominator; the smallest positive one is the lowest common denominator, often abbreviated LCD. By definition the LCD of a set of fractions is the least common multiple of the denominators as they are written, not a guess and not a product that ignores shared factors.
For one-half, one-third, and one-fourth the denominators are two, three, and four; the least common multiple is twelve, so each fraction rewrites as six-twelfths, four-twelfths, and three-twelfths. The product two times three times four is twenty-four, which is a common denominator but not the lowest, and using it only inflates every numerator. This capability computes the true LCM with the Euclidean greatest-common-divisor step: lcm(a, b) equals a divided by gcd(a, b), times b, then folds that binary step across the whole list so shared prime factors are counted only once.
It does not reduce the input fractions before taking the LCM, because classroom language and the search phrase lowest common denominator refer to the bottoms you actually typed. Two-fourths and one-sixth therefore yield twelve, the LCM of four and six, even though reducing first would have produced six.
What to enter and what you get back
Each record needs a finite integer numerator and a positive integer denominator. Numerators may be negative, zero, or positive; they do not change the LCD but they do change the rewritten numerators returned beside it. A negative denominator, a non-integer, or a non-finite value is rejected on the same rule.
On success the body returns lcd, the integer lowest common denominator; count, the number of input rows; denominators, the bottoms in input order; fractions, the parsed numerator and denominator pairs; rewritten, the same fractions with every denominator equal to lcd; and formula, the string lcd equals lcm of the denominators. Example: one-half, one-third, and one-fourth yield lcd twelve and rewritten six-twelfths, four-twelfths, and three-twelfths.
Where a common denominator saves time
Classrooms and tutoring platforms use a lowest common denominator calculator so learners can check the LCM-of-denominators step without missing a shared factor or multiplying every bottom together by habit. Exam-prep generators need a deterministic oracle that marks a zero denominator as invalid input instead of returning NaN that a buggy grader might treat as success. Failed validation does not consume balance.
Keep requests inside the forty-fraction cap, pin the integer lcd in tests, and you get reproducible common denominators for homework, LMS plugins, and edge workers without standing up symbolic math infrastructure of your own.
What you can do with it
Classroom and homework checks
Let students submit two or more fractions and verify the LCD and the rewritten numerators against the LCM-of-denominators method taught in class.
Exam and LMS auto-grading
Mark unlike-fraction items with a deterministic oracle that rejects a zero or non-positive-integer denominator and never invents a padded common multiple.
Rational rates and worksheet generators
Find a common tick for gear ratios, sampling rates, or generated add-the-fractions worksheets without importing a computer-algebra library.
FAQ
How is the lowest common denominator of a list of fractions computed?
The LCD is the least common multiple of the denominators as written.
What happens if a denominator is zero or not a positive integer?
A denominator must be a positive integer; zero, negatives, and non-integers are rejected and are not billed.
Do I need to reduce the fractions before sending them?
No. The calculator uses the denominators you send. Two-fourths and one-sixth yield twelve, the LCM of four and six, even though reducing first would have produced six.
Why not just multiply the denominators together?
Multiplying gives a common denominator, but not always the lowest one. For 1/2, 1/3 and 1/4 the product is 24, while the lowest is 12, and using 24 only makes every numerator bigger than it needs to be.
Does the calculator add the fractions for me?
No. It finds the lowest common denominator and rewrites each fraction over it, such as 6/12, 4/12 and 3/12. Adding the new numerators is then a single last step that you can do or check by hand.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/math/lowest-common-denominator \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"fractions":[{"numerator":1,"denominator":2},{"numerator":1,"denominator":3},{"numerator":1,"denominator":4}]}'const res = await fetch("https://api.kit.forhosting.com/math/lowest-common-denominator", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"fractions": [
{
"numerator": 1,
"denominator": 2
},
{
"numerator": 1,
"denominator": 3
},
{
"numerator": 1,
"denominator": 4
}
]
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/math/lowest-common-denominator",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"fractions": [
{
"numerator": 1,
"denominator": 2
},
{
"numerator": 1,
"denominator": 3
},
{
"numerator": 1,
"denominator": 4
}
]
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/math/lowest-common-denominator", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"fractions":[{"numerator":1,"denominator":2},{"numerator":1,"denominator":3},{"numerator":1,"denominator":4}]}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"fractions":[{"numerator":1,"denominator":2},{"numerator":1,"denominator":3},{"numerator":1,"denominator":4}]}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/math/lowest-common-denominator", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"fractions": [
{
"numerator": 1,
"denominator": 2
},
{
"numerator": 1,
"denominator": 3
},
{
"numerator": 1,
"denominator": 4
}
]
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "math.lowest_common_denominator",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_items | 40 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
A denominator that is zero or not a positive integer is rejected with invalid_input instead of a hollow answer.
What the lowest common denominator is and how it is computed
If you need the reduced form as well, reduce on the client after you receive the LCD; the contract here stays faithful to the denominators in the request. The algorithm is exact integer arithmetic with an overflow guard: if the running LCM would leave the safe integer range the request fails instead of silently becoming a float.
Input contract, response shape, and error behaviour
POST a JSON body with one required field, fractions, an array of two to forty records. Aliases items, values, list, and denominators are accepted so scripts can reuse existing payloads, and each row also accepts n or num for the numerator and d, den, or denom for the denominator. Missing fractions, a list shorter than two rows, or more than forty rows fail with invalid_input naming the field. Pair the response with your own addition step if you need a single sum; this endpoint finds the common denominator and the equivalent fractions, and it does not emit a total or a mixed number.
Where a lowest common denominator API earns its keep
Worksheet and LMS plugins that ask students to add unlike fractions can call this endpoint first, show the rewritten terms, and only then ask for the sum, which keeps the grading of the LCD step separate from the grading of the addition step. Engineering notebooks that combine rational sampling rates, gear ratios, or unit conversions often need a common tick size; calling a tiny parse API avoids pulling a full computer-algebra system for a short list of integer bottoms.
Technical questions
Does the response include the fractions rewritten with the LCD?
Yes. The rewritten array repeats each input fraction with denominator equal to lcd and numerator equal to n times (lcd / d), in the same order as the request.
What does the lowest common denominator calculator cost?
The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.