What is the difference between GCD and LCM?
The GCD is the largest number that divides all your numbers evenly, so it is never larger than the smallest of them. The LCM is the smallest positive number that all of them divide into evenly, so it is never smaller than the largest of them.
How do I find the GCD and LCM of more than two numbers?
Enter them all in the box, up to 100, and press the button. The tool combines them one after another, which gives the same result as working with the whole set. You do not need to do it two at a time by hand.
Can I use negative numbers or zero?
Yes. A negative number is treated as its positive twin. Zero is accepted too. If any input is zero, the LCM is zero. If every input is zero, the GCD is 0 and the LCM is shown as undefined, because no positive common multiple exists.
Why does a single number give an error?
The tool is built for sets of at least two numbers, so one number gives the message 'Enter 2 to 100 whole numbers'. The GCD of one number would just be that number, so you can read it off without a calculator.
Can I enter decimals such as 2.5 and 7.5?
No. Only whole numbers are allowed, and a decimal point gives an error. If your numbers are decimals, multiply them all by the same power of 10 until they are whole, run the tool, then think about how the scaling changes the answer.
Is there a rule linking the GCD and the LCM?
For two numbers, the GCD times the LCM equals the product of the two numbers. For 12 and 18 that is 6 times 36, which is 216, the same as 12 times 18. The rule does not hold the same way for three or more numbers.
How big can the numbers be?
Each number can have up to 1000 digits, because the tool uses big integers rather than ordinary floating-point numbers. The LCM can grow much larger than the inputs, so if it would pass 1000 digits the tool says it is too large to display.
Does the tool show the working steps?
No. It shows only the two final values. If you want the steps, break each number into prime factors by hand, or use the Euclidean method of repeated division with remainders, and compare your result with this tool.
Are my numbers sent anywhere?
The page says the calculation works in your browser and your input stays on your device. The numbers are not uploaded. The result is gone when you close the tab, so write down anything you want to keep.
Hvordan bruker du Kalkulator for største felles divisor og minste felles multiplum?
Skriv inn heltall atskilt med komma eller mellomrom for å beregne største felles divisor og minste felles multiplum.
Lastes dataene mine opp til en server?
Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.