Free online calculator

GCF and LCM Calculator

Find the greatest common factor and least common multiple of two positive whole numbers.

Math · Free online calculator

GCF and LCM Calculator

Find the greatest common factor and least common multiple of two positive whole numbers.

Both inputs must be positive integers within the supported range.

CALCULATOR GUIDE

How the GCF and LCM Calculator works

Find the greatest common factor and least common multiple of two positive whole numbers. This guide explains the inputs, calculation method, example and key limitations so you can check whether the result fits your question.

Use it forGCF and LCM Calculator

Find the greatest common factor and least common multiple of two positive whole numbers.

MethodTransparent calculation

GCF uses the Euclidean algorithm; LCM = |a × b| ÷ GCF(a,b).

Inputs to prepare

Before you calculate, gather the values the question asks for and check their units. Choose options carefully and use consistent dates, periods and starting values. The notes below describe the fields shown in the calculator above.

  • First positive integerUse a numeric value and keep the displayed unit consistent. Allowed range: 1 to 1000000000
  • Second positive integerUse a numeric value and keep the displayed unit consistent. Allowed range: 1 to 1000000000

How to use the GCF and LCM Calculator

  1. Enter the details. Fill in each required field and use the units or formats shown next to it.
  2. Check your assumptions. Confirm dates, comparison values, time periods and selected options before submitting.
  3. Calculate and review. Read the result together with its unit, time period and any additional breakdown.
  4. Compare scenarios. Change one input at a time if you want to understand how different values affect the outcome.

Formula and worked example

CALCULATION METHOD

GCF uses the Euclidean algorithm; LCM = |a × b| ÷ GCF(a,b).

Example calculation

For 24 and 36, the GCF is 12 and the LCM is 72.

Try the same values in the calculator above. If your result differs, recheck the units, input order, assumptions and rounding displayed by the tool.

What your result means

Find the greatest common factor and least common multiple of two positive whole numbers. Read the result label and unit carefully. A useful estimate describes only the inputs and assumptions supplied; it should not be treated as proof of a future outcome or a guarantee.

  • Check the displayed unit and period before comparing results.
  • Use values from a reliable source and keep them up to date.
  • Repeat the calculation with an independent check when the outcome matters.

Assumptions and limitations

Both inputs must be positive integers within the supported range.

The calculator is a general-purpose tool. Actual outcomes may depend on local rules, provider terms, measurement standards or personal circumstances not represented in the fields. For consequential financial, health, legal, tax or construction decisions, confirm the result with an appropriate authoritative or qualified source.

Frequently asked questions

How does the gcf and lcm calculator work?

GCF uses the Euclidean algorithm; LCM = |a × b| ÷ GCF(a,b).

Which inputs does the gcf and lcm calculator use?

The fields shown above describe the inputs and units required for this method. Use consistent units and verify all values before calculating.

What should I check before using the gcf and lcm calculator result?

Both inputs must be positive integers within the supported range.

For transparency, use the formula and worked example to check the output. Add authoritative references and have the calculation reviewed before relying on it for a consequential decision.

Before you use the result

Check the inputs, units, worked example and limitations shown on this page. Estimates depend on the information you enter and the assumptions explained in the guide.