Math Tool

GCD & LCM Calculator

Find Greatest Common Divisor and Least Common Multiple of two integers.

Input Parameters

Calculation Results

Greatest Common Divisor (GCD)
12
Least Common Multiple (LCM)
72
Product (A × B)
864
Summary: The GCD of 24 and 36 is 12, and their LCM is 72.
Step-by-Step Calculation Solution
1.Input numbers: A = 24, B = 36
2.GCD(24, 36) = 12
3.LCM(24, 36) = (|24 × 36|) / GCD = 72

Formula & How GCD & LCM Calculator Works

Mathematical Formula
LCM(A, B) = (|A × B|) / GCD(A, B)

The GCD (or Highest Common Factor) is the largest positive integer that divides both numbers without a remainder. The LCM is the smallest positive integer divisible by both.

How to Calculate GCD & LCM Calculator (Step-by-Step)
  1. Enter First Integer (A): Input your target parameter value.
  2. Enter Second Integer (B): Input your target parameter value.
  3. Apply Formula: Calculate using LCM(A, B) = (|A × B|) / GCD(A, B).
  4. Review Results: View exact computed answers, metrics, and worked mathematical proofs.
Free Publisher & Webmaster Asset

Need this calculator for your blog, publication, or client portal?

Get pre-formatted embed codes, Markdown citations for forums (Reddit/Whirlpool), or HTML anchor tags free.

Frequently Asked Questions (FAQs)

How is GCD calculated?

Using the Euclidean algorithm: repeatedly replace the larger number with the remainder of dividing the two numbers until the remainder is zero.

Official Regulatory & Government Data Sources

Authoritative Standards & Verified Reference Citations

Independent & Verified

Calculations and mathematical logic on this page are grounded in published statutory rules, regulatory standards, and official government data published by the following bodies:

Related Calculation Tools

SponsoredMortgage Hub

Dedicated Australian home loans, borrowing capacity, mortgage repayments & refinance modeling.

Advertise here →