GCD and LCM Calculator
Find the greatest common divisor and lowest common multiple of any list of whole numbers, with the reduced ratio.
Awaiting input
Fill in the fields and press Calculate. Your result appears here and stays in view as you scroll.
The guide
Understanding the GCD and LCM
Find the greatest common divisor and lowest common multiple of any list of whole numbers, with the reduced ratio.
What each input means
The calculator asks for 1 piece of information. Every field is validated before the maths runs, so an impossible value is refused rather than quietly producing a wrong answer.
| Input | What it asks for | Example |
|---|---|---|
| Whole numbers | Two or more whole numbers, separated by commas or spaces. | 48, 180, 60 |
A worked example using the default inputs
With whole numbers of 48, 180, 60, the calculator returns 12 lowest ratio 4 : 15 : 5.
| Result line | Value |
|---|---|
| Greatest common divisor | 12 lowest ratio 4 : 15 : 5 |
| Lowest common multiple | 720 |
| Numbers given | 3 |
| Product of all numbers | 518,400 |
| Product ÷ LCM | 720 |
| Each number ÷ GCD | 4, 15, 5 |
The same arithmetic runs whatever you type into the form above, so you can reproduce any figure by matching the inputs listed here.
How this is calculated
For two numbers, LCM(a, b) = a × b ÷ GCD(a, b). Repeat pairwise across the list to extend both results to three or more numbers.
Working values are kept at full precision and rounded only for display. Impossible dates, zero denominators, negative amounts where they make no sense, and out-of-range values are rejected before any result is shown.
The methods these maths tools apply
Each tool in this section implements one standard definition. The value of knowing which is that you can verify a result with rough mental arithmetic and can spot an input mistake before it costs you anything.
| Operation | The rule | Where it is used |
|---|---|---|
| Percentage of a number | part = whole × rate ÷ 100 | Percentage |
| Percentage change | change = (new − old) ÷ old × 100 | Percentage, discounts |
| Centres of a list | Mean = Σx ÷ n; median = the middle of the sorted list | Average, standard deviation |
| Spread | Sample deviation divides by n − 1; population by n | Standard deviation |
| Quadratic roots | x = (−b ± √(b² − 4ac)) ÷ 2a | Quadratic solver |
| Divisor and multiple | LCM = |a × b| ÷ GCD(a, b) | GCD and LCM |
| Triangle geometry | Law of cosines and Heron's formula | Triangle, Pythagorean theorem |
| Evaluation order | Brackets, then powers, then × and ÷, then + and − | Scientific calculator |
Order of operations is the rule most often broken by hand and by spreadsheet. A negative number squared is positive only when the minus sign is inside the brackets, and a trigonometric function applied in degree mode returns a different number from the same input in radian mode, so the mode matters as much as the digits.
Rounding is a display decision, not a mathematical one. Keeping full precision until the final line is why a result printed as 0.33 can still be exactly one third underneath.
Three worked examples from this section
15% of 240, both directions
Fifteen per cent of 240 is 240 × 0.15 = 36. Adding it gives 276; taking it away gives 204. Going back from 276 by subtracting 15% returns 234.60, which is why "add 15% then subtract 15%" never lands where you started.
- 15% of 240
- 36
- 240 increased by 15%
- 276
- 240 decreased by 15%
- 204
- 276 reduced by 15%
- 234.60
Solving x² − 5x + 6 = 0
Here a = 1, b = −5 and c = 6, so the discriminant is 25 − 24 = 1. A positive discriminant means two real roots: (5 ± 1) ÷ 2 gives 2 and 3. The vertex sits at x = 2.5, where the curve dips to −0.25.
The spread of 4, 8, 15, 16, 23, 42
Six values summing to 108 give a mean of 18. Sorted, the middle pair is 15 and 16, so the median is 15.5. Dividing the sum of squared deviations (910) by n − 1 and taking the square root gives a sample standard deviation of about 13.5 — most of the list sits within one of those of the mean, with 42 the clear outlier.
Precision, rounding and exactness
Arithmetic here follows the standard mathematical definition of each operation. Working values are kept at full precision and rounded only when they are printed, so intermediate rounding never accumulates into the final answer.
- Where a result is inexact, it is shown to a sensible number of significant figures rather than padded with meaningless digits.
- Very large or very small inputs may be displayed in scientific notation; the underlying value is unchanged.
- Where a problem has more than one valid answer, as with quadratic equations or signed square roots, every branch is reported rather than only the positive one.
Sources and further reading
Reviewed 4 November 2026 · CalcFlow editorial
Common questions
Frequently asked
When would I use the LCM?+
Adding fractions with different denominators, finding when two repeating events line up again, or working out the smallest common size that fits two different panel or tile dimensions.
Why is the GCD of two numbers 1 sometimes?+
That means the numbers are coprime — they share no factor other than 1. For example 9 and 20 are coprime even though neither is prime.
Keep going
Related calculators
Percentage Calculator
Find a percentage of a number, or increase and decrease it, with every variation shown side by side.
Average Calculator
Paste a list of numbers to get the mean, median, mode and range, with a clear count of what was included.
Quadratic Equation Solver
Solve ax² + bx + c = 0 for real or complex roots, with the discriminant, vertex and axis of symmetry.
Often used together
Pairs well with
The next question people ask after this one usually sits in another section.
Mortgage Payment Calculator
Work out the monthly principal and interest on a home loan, plus the total cost of borrowing over the full term.
Income Tax and Take-Home Pay Calculator
Estimate take-home pay from a gross salary in Australia, the United States, the United Kingdom, Canada, New Zealand or India.
BMI Calculator
Calculate body mass index in metric or imperial units and place it against the standard reference bands.