GCD and LCM Calculator
Find the greatest common divisor and least common multiple of two whole numbers in your browser, by Euclid. Nothing is uploaded.
What this gcd and lcm calculator does
The greatest common divisor comes from Euclid: repeated remainders until nothing is left, so forty-eight and eighteen meet at six. The least common multiple follows as the absolute product over that divisor, which is why the same pair reports one hundred and forty-four. Both inputs must be whole numbers; fractions have no divisor in this sense and are refused. Zero and zero define zero and zero, stated rather than divided.
How to use it
GCD and LCM Calculator: paste the note into the box above, set First number (default "48") and Second number (default "18"), and press Run to get the GCD and LCM below.
Worked example
Input:
Output:
GCD = 6, LCM = 144
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads note and returns GCD and LCM; reloading the page discards both.
The greatest common divisor comes from Euclid: repeated remainders until nothing is left, so forty-eight and eighteen meet at six. The least common multiple follows as the absolute product over that divisor, which is why the same pair reports one hundred and forty-four. Both inputs must be whole numbers; fractions have no divisor in this sense and are refused. Zero and zero define zero and zero, stated rather than divided.
Find the greatest common divisor and least common multiple of two whole numbers in your browser, by Euclid. Nothing is uploaded.
How to use it
GCD and LCM Calculator: paste the note into the box above, set First number (default "48") and Second number (default "18"), and press Run to get the GCD and LCM below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads note and returns GCD and LCM; reloading the page discards both.
What to Expect
Best for
- Converting note to GCD and LCM when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample output
GCD = 6, LCM = 144
Frequently asked questions
How do I use the gcd and lcm calculator?
GCD and LCM Calculator: paste the note into the box above, set First number (default "48") and Second number (default "18"), and press Run to get the GCD and LCM below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.