Math & Statistics Tools

GCD / LCM Calculator

Find the exact greatest common divisor and least common multiple of signed whole numbers.

Your content stays on your device Free, with no account
GCD / LCM CalculatorLocal calculation · no uploads

Inputs & controls

Display precision does not round inputs or exact calculations. Exact result strings and generated reports retain their stated precision.

Enter values or load the example to begin.

Supported calculations & limits

Up to 100 signed whole numbers, 120 digits each. GCD/LCM are nonnegative. gcd(0,0)=0; a zero input gives LCM 0. Exactly two inputs also produce Bézout coefficients. Exact outputs are limited to 5,000 digits.

Calculation worker deadline: 10 seconds. Results are invalidated on input or setting changes. Reports are limited to 4 MiB. No values are persisted or sent to a server.

YOUR CALCULATION

Result & verification

Calculate to see results, assumptions and supporting rows.

    Report preview · exact generated content
    A FEW SIMPLE STEPS

    How to use GCD / LCM Calculator

    1. Enter values or load the example. Statistics tools can optionally import a local UTF-8 data file; select CSV settings explicitly.
    2. Choose the operation and review its supported scope, exact/approximate arithmetic and assumptions.
    3. Calculate locally. Review the result, supporting rows, distribution where relevant and any undefined or exceptional cases.
    4. Copy the report or download TXT/JSON. Editing inputs invalidates prior results; original files remain unchanged.
    PRIVATE BY DESIGN

    Why use this tool?

    Your numbers, expressions, matrices and optional data files stay on your device. Calculations run in a bounded local worker using self-hosted code, without uploads, accounts or application input history.

    Tool inputs stay in your browser. Only your theme preference is saved on this device.

    A few things worth knowing

    What calculations are supported?

    Up to 100 signed whole numbers, 120 digits each. GCD/LCM are nonnegative. gcd(0,0)=0; a zero input gives LCM 0. Exactly two inputs also produce Bézout coefficients. Exact outputs are limited to 5,000 digits.

    Are results exact?

    Integer, fraction, combinatorial and supported rational algebra operations use exact BigInt rational arithmetic, within explicit resource limits. Scientific functions, descriptive statistics and labeled irrational-root approximations use finite IEEE-754 numbers. Display precision never changes exact inputs, rational decisions or stored data.

    What happens with invalid or undefined input?

    Invalid input, incompatible dimensions, division by zero, unsupported domains or resource limits produce a clear message and clear prior outputs. Undefined sample variance with one observation is labeled explicitly. Reports are available only after a successful complete calculation.

    Are data files uploaded or saved?

    No. Optional Statistics file selection reads UTF-8 locally and shows filename, size and loading/ready/error status. Failed imports preserve previous working text. Manual replacement, sample and clear remove obsolete file selections. Downloads and clipboard copies exist outside the application only when you request them.