ok.OK UtilityA LITTLE EVERYDAY MAGIC

LCM Calculator

LCM Calculator: Find the least common multiple of two nonnegative integers.

Enter your calculation

How to use LCM Calculator

Find the least common multiple of two nonnegative integers.

  1. Enter First nonnegative integer, Second nonnegative integer.
  2. Use nonnegative whole numbers; an input of zero makes the least common multiple zero.
  3. Select Calculate and review the LCM answer.

Example: Using First nonnegative integer = 12; Second nonnegative integer = 18, the result is 36.

How it is calculated: LCM(a,b) = absolute(a × b) / GCD(a,b) for nonzero inputs; an input of zero gives an LCM of zero.

Understanding the result

The least common multiple is the smallest shared positive multiple for nonzero entries. Exact integer arithmetic preserves large products that could otherwise lose digits.

A calculation you can check

For 12 and 18, the LCM is 36. A repeating event every 12 days and one every 18 days align after 36 days under that simple schedule.

What to check before using the answer

  • The implementation returns 0 when either input is zero, following its stated convention.

Guidance updated . Methods and corrections

Are my inputs saved?

Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.

Can I switch to a related tool?

Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.

Search the complete directory ESC to close
Your everyday toolkit