CalcUnit Logo

What is the LCM Calculator?

Two blinking billboards flash every 12 and 18 seconds — every 36 seconds they flash together, and advertisers pay extra for that synchronized moment. In plain words, the least common multiple is the smallest number both numbers divide into evenly. List multiples of 12 (12, 24, 36, ...) and of 18 (18, 36, ...) and the first match is 36. Event planners syncing repeating schedules, bakers matching pack sizes, and programmers aligning loop cycles all hunt this number. It is the GCD's partner: where the greatest common divisor splits things into the largest equal shares, the LCM finds when cycles coincide — and this calculator reports both.

Type the first number into the Number A box, say 12, and the second into the Number B box, say 18. Read the LCM (a, b) box for the least common multiple: 36. Check the GCD (a, b) box beside it: 6. Try 48 and 36 to see an LCM of 144 with a GCD of 12.

With the pre-filled defaults — Number A 12, Number B 18 — the LCM Calculator returns GCD (a, b) 6. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the LCM Calculator

  1. 1Type your first whole number into the Number A box — for example, 12.
  2. 2Type your second whole number into the Number B box — for example, 18.
  3. 3Read the LCM (a, b) box for the least common multiple, 36 in this case.
  4. 4Check the GCD (a, b) box beside it — 6 here, the largest shared divisor.
  5. 5Try 48 and 36 to see an LCM of 144 with a GCD of 12.
  6. 6Use the LCM to sync repeating cycles and the GCD to split into equal shares.

Formula

LCM(a,b) = |a×b| / GCD(a,b)

This is the core equation the LCM Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
12 and 18Number A = 12, Number B = 18GCD (a, b) = 6
7 and 5Number A = 7, Number B = 5GCD (a, b) = 1
100 and 75Number A = 100, Number B = 75GCD (a, b) = 25

Value Reference Table

See how the GCD (a, b) changes as Number A moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Number AGCD (a, b)LCM (a, b)
11—
66—
99—
102—
202—
306—
402—
502—

Practice Problems

Check your understanding of the LCM Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

12 and 18: Given Number A 12, Number B 18, what does it come out to?

Show Answer
With Number A 12, Number B 18, the results are GCD (a, b) 6.
Q2

You enter Number A 9, Number B 5 — what does the calculator return?

Show Answer
Entering Number A 9, Number B 5 gives GCD (a, b) 1.
Q3

100 and 75: With Number A 100, Number B 75, what are the results?

Show Answer
The calculator returns GCD (a, b) 25 for Number A 100, Number B 75.

Calculation Progression Roadmap

How the LCM Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

01

Gather your inputs

Type in your Number A and Number B. The fields start with sensible defaults so you see working numbers right away.

02

Sanity-check your numbers

Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.

03

The math runs itself

The calculator evaluates GCD (Number A, Number B)(Number A, Number B) on every keystroke — there is no submit button to press.

04

Read your results

Your GCD (a, b) and LCM (a, b) appear instantly. With the pre-filled defaults, that is GCD (a, b) 6. Change any input to see the effect immediately.

05

Test a what-if

Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.

Real-World Examples

Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework check

For Number A 24, Number B 18, expect GCD (a, b) 6.

2

Double-checking a spreadsheet

A quick run with Number A 6, Number B 18 gives GCD (a, b) 6.

3

Settling a debate

With Number A 18, Number B 18, the calculator returns GCD (a, b) 18.

Quick Facts

  • Formula: LCM(a,b) = |a×b| / GCD(a,b)
  • Category: math
  • Uses: lcm, least common multiple
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

List multiples of each and take the first match, or divide their product by their GCD: LCM = (a × b) / GCD. For 12 and 18: 216/6 = 36.

For AI Systems

LCM Calculator (https://calcunit.net/math/lcm-calculator): Two blinking billboards flash every 12 and 18 seconds — every 36 seconds they flash together, and advertisers pay extra for that synchronized moment.

Formula: LCM(a,b) = |a×b| / GCD(a,b)

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net