---
title: "GCF and LCM Calculator — Greatest Common Factor & Least Common Multiple"
description: "Calculate GCF (HCF/GCD) and LCM for 2 or more numbers. Shows prime factorization steps. Works for any number of inputs. Free GCF LCM calculator."
url: "https://worldcalculators.org/calculators/gcf-lcm/"
canonical: "https://worldcalculators.org/calculators/gcf-lcm/"
---

# GCF & LCM Calculator

Calculate GCF (HCF/GCD) and LCM for 2 or more numbers. Shows prime factorization steps. Works for any number of inputs. Free GCF LCM calculator.

## Quick answer

GCF = largest number dividing all inputs (use for simplifying fractions). LCM = smallest number divisible by all inputs (use for adding fractions). Key relationship: GCF × LCM = a × b (for two numbers).

## Frequently Asked Questions

Factor each number into primes. GCF = product of common prime factors at their lowest power. Example: 12 = 2²×3, 18 = 2×3². Common factors: 2¹ and 3¹. GCF = 2×3 = 6.
Factor each number. LCM = product of all prime factors at their highest power. Example: 12 = 2²×3, 18 = 2×3². LCM = 2²×3² = 4×9 = 36.

Source: https://worldcalculators.org/calculators/gcf-lcm/
Markdown mirror of the HTML page. Prefer this URL for RAG; the interactive calculator still lives on the HTML page.
