GCF & LCM Calculator

Greatest common factor and least common multiple.

Enter details

GCF (HCF)

6

LCM
180

GCF & LCM Calculator Guide: Formula & Worked Example

Short answer

Greatest common factor and least common multiple. In the fixed example below, gcf (hcf) is 6. Your answer depends on the inputs and assumptions you choose.

Formula

Result = GCF & LCM Calculator calculation using whole numbers (comma separated)

The inputs are whole numbers (comma separated). Use the input scale shown beside each field and keep time periods and units consistent. Only round the final result for display.

Worked example

Whole numbers (comma separated)
12, 18, 30
  • GCF (HCF): 6
  • LCM: 180

Understanding the result

Greatest common factor and least common multiple. Start with the base example, then replace each value with the figure that matches your situation.

Whole numbers (comma separated)

The example uses 12, 18, 30 for whole numbers (comma separated). This is an illustration, not a recommended value. Keep the unit and time period shown by the field.

What the comparison means

The base scenario lists the selected inputs and their resulting output. Change the selections in the calculator to compare another scenario.

Check units, date boundaries and rounding before using the answer in a report or a practical measurement.

Comparison

ScenarioInputResult
Base exampleWhole numbers (comma separated): 12, 18, 30GCF (HCF): 6

Common mistakes

  • Using the wrong units for whole numbers (comma separated).
  • Comparing results while changing more than one input at a time.
  • Check units, date boundaries and rounding before using the answer in a report or a practical measurement.

Checklist

  • Confirm whole numbers (comma separated).
  • Check the result against your source or provider.

Calculators Percentage Editorial Team

Calculator guides from the Calculators Percentage team. These introductory examples are educational, not professional advice.

Last reviewed:

Check units, date boundaries and rounding before using the answer in a report or a practical measurement.

Frequently Asked Questions

How do I use the GCF & LCM Calculator?

Enter Whole numbers, then press Calculate. Your results appear instantly and update every time you change a value and calculate again.

How accurate are the results?

Results are calculated with full precision and rounded for display. For critical work, double-check the rounding you need.

Is this calculator free?

Yes. The GCF & LCM Calculator and all other math calculators on Calculators Percentage are free, with no sign-up required.

Why can my result differ from another source?

Different input assumptions and rounding can produce different answers. Check units, date boundaries and rounding before using the answer in a report or a practical measurement.

What should I check before relying on the answer?

Confirm every input against its original source, use consistent units and inspect the worked example. For important decisions, independently verify the result.

Sources & references

Formulas are tested against hand-checked answers. How we check our calculators.

Estimates only. Confirm final figures, terms and fees with your bank, provider or a qualified professional.

Last updated: January 15, 2026