ForHosting KIT · Math

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
Use it from WebAPIEmailTelegramApp soon

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.

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.

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.

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.

POSThttps://api.kit.forhosting.com/math/lowest-common-denominator

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.

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}]}'
{
  "fractions": [
    {
      "numerator": 1,
      "denominator": 2
    },
    {
      "numerator": 1,
      "denominator": 3
    },
    {
      "numerator": 1,
      "denominator": 4
    }
  ]
}
{
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_items40
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

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.

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.

Read the full KIT documentation →