OctalOne

100% Private & Offline-Ready

Your files are processed entirely on your device. Nothing is uploaded — works offline too!

Learn More →

GCD / GCF Calculator

Calculate the Greatest Common Divisor (GCD), GCF, and HCF for 2 to 10 numbers with interactive Euclidean rectangle tiling blueprint, prime factor Venn diagram, and 4 step-by-step methods.

Greatest Common Divisor (GCD / GCF) Score
6GCD(48, 18)

Largest integer dividing all 2 input numbers evenly with zero remainder.

Least Multiple (LCM)
144
Smallest Multiple
Input Count
2 Numbers
Active Set
Enter Numbers (2 to 10 Positive Integers)
Quick Adjust Cards (2/10)
#1
#2
Interactive 2D Visualizer

Explore geometric tiling, factor Venn intersections, and divisor matrices.

Step 0 of 5
Width: 48Height: 18
Geometric Interpretation: The greatest square that perfectly tiles the 48 × 18 rectangle has side length 6.Tiled by 5 Squares
Product Rule Equality
GCD(48, 18) × LCM(48, 18) = 6 × 144 = 864 Exact Equality Verified
Direct Product: 48 × 18 = 864

Calculation Method Breakdown

Detailed step-by-step mathematical derivation across 4 standard methods.

The Euclidean algorithm repeatedly computes quotients and remainders (a = b × q + r) until remainder = 0. The last non-zero remainder is the GCD.

Step #1: Finding GCD(48, 18)Result = 6
StepEquation (a = b × q + r)QuotientRemainder
#148 = 18 × 2 + 12q = 2r = 12
#218 = 12 × 1 + 6q = 1r = 6
#312 = 6 × 2 + 0q = 2r = 0

Itemized Calculation Summary

Ready for printing, homework submission, or quick sharing.

========================================
GCD / GCF CALCULATION SUMMARY
OctaLone Tools (octalone.com/tools/gcd-calculator)
========================================
Input Numbers: 48, 18

PRIMARY RESULTS:
  • Greatest Common Divisor (GCD/GCF/HCF): 6
  • Least Common Multiple (LCM): 144

PRIME FACTORIZATION BREAKDOWN:
  • 48 = 2^4 × 3
  • 18 = 2 × 3^2

Product Rule Verification:
  • GCD(48, 18) × LCM(48, 18) = 6 × 144 = 864
  • 48 × 18 = 864 (Equal: Yes ✓)
========================================

Did You Know? Euclid's Algorithm Trivia

Fact 1 of 6

Oldest Known Algorithm

The Euclidean algorithm, introduced around 300 BCE in Euclid's 'Elements', is widely considered the oldest non-trivial mathematical algorithm still actively used today!

You might also like

Frequently Asked Questions

The Greatest Common Divisor (GCD), also known as the Greatest Common Factor (GCF) or Highest Common Factor (HCF), is the largest positive integer that divides two or more numbers evenly with a remainder of zero.

The Euclidean algorithm successively divides the larger number by the smaller number (a = b × q + r) and replaces (a, b) with (b, r). This step repeats until the remainder reaches zero. The last non-zero remainder is the GCD.

Write each number as a product of prime powers (e.g. 48 = 2⁴ × 3¹ and 18 = 2¹ × 3²). Find the prime factors that are common to all numbers and select the minimum exponent for each (2¹ and 3¹). Multiply these minimum powers: 2¹ × 3¹ = 6.

If you have a rectangle of dimensions a × b, the Euclidean algorithm can be visualized as cutting the largest possible square tiles from the rectangle. The side length of the smallest square tile that completely fills the remaining rectangle with no gaps or overlap is exactly the GCD.

For any two positive integers a and b, GCD(a, b) × LCM(a, b) = a × b. This means once you find the GCD, the LCM can be computed directly by dividing their product by their GCD: LCM(a, b) = (a × b) ÷ GCD(a, b).

Yes! The calculator supports between 2 and 10 numbers. It utilizes the associative property of the Euclidean algorithm: GCD(a, b, c) = GCD(GCD(a, b), c).

Yes, 100%. The calculator is completely free, private, and works offline via client-side service workers. No calculations or numbers are ever transmitted over the network.