Maths & numbers

Ratio simplifier

Reduce a ratio of whole numbers to its simplest form.

Ratio simplifier
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

Both integer parts are divided by their greatest common divisor. Use non-negative integers, with at least one non-zero part.

How this is checked

4 reference checks passed These 4 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.

See the checks and where each expected answer comes from
  1. Case 1

    Inputs
    First part 1920Second part 1080
    Expected, and what Toolmoz gave
    headline expected 16:9, Toolmoz 16:9
    Where the expected answer comes from
    gcd(1920, 1080) = 120 (1920 = 16 × 120, 1080 = 9 × 120), so the ratio is 16:9
    Allowed difference
    exact
  2. Case 2

    Inputs
    First part 100Second part 250
    Expected, and what Toolmoz gave
    headline expected 2:5, Toolmoz 2:5
    Where the expected answer comes from
    gcd(100, 250) = 50, so 100:250 = 2:5
    Allowed difference
    exact
  3. Case 3

    Inputs
    First part 48Second part 36
    Expected, and what Toolmoz gave
    headline expected 4:3, Toolmoz 4:3
    Where the expected answer comes from
    gcd(48, 36) = 12, so 48:36 = 4:3
    Allowed difference
    exact
  4. Case 4

    Inputs
    First part 7Second part 13
    Expected, and what Toolmoz gave
    headline expected 7:13, Toolmoz 7:13
    Where the expected answer comes from
    7 and 13 are coprime, so the ratio is already in simplest form
    Allowed difference
    exact

What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

First part
1920
Second part
1080

Example result

16:9