Math Tool

GCD & LCM Calculator

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

Last reviewed by the myCalculator Editorial Team

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 greatest common divisor (GCD) is the largest whole number that divides both numbers with no remainder, and the lowest common multiple (LCM) is the smallest number that both numbers divide into. For 12 and 18 the divisors of 12 are 1, 2, 3, 4, 6, 12 and of 18 are 1, 2, 3, 6, 9, 18, so the GCD is 6. The LCM follows from LCM = (12 × 18) ÷ GCD = 216 ÷ 6 = 36. The GCD is used to reduce fractions to lowest terms: 12/18 becomes 2/3. The LCM is used to find a common denominator when adding fractions, or to work out when two repeating events, such as a 12-day and an 18-day cycle, next coincide, which is every 36 days.

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.

Free Embed Generator & Publisher Widget

Embed GCD & LCM Calculator on Your Site

Offer your readers, students, or clients interactive calculations. Fast, responsive, and 100% free with no login required.

Widget Customizer

650px

Recommended for publishers & educational portals to provide source citation.

Live Embed PreviewAspect Ratio: Responsive (100% × 650px)
Calculated via mycalculator.com.au — Free Australian Calculator Hub
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:

SponsoredMortgage Hub

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

Advertise here →