The Ratio Calculator takes two numbers and simplifies their ratio to the lowest possible whole-number terms by dividing both sides by their greatest common divisor (GCD). It also expresses the ratio as a decimal (A divided by B) and shows what percentage A represents of the total (A plus B).

Ratios appear everywhere in daily life and across many fields. Cooks scale recipes using ingredient ratios. Engineers and architects work with scale ratios on drawings and models. Financial analysts compare revenue figures as ratios. Teachers explain probability using simplified ratios of favorable outcomes to total outcomes.

Simplifying a ratio by hand means finding the GCD of the two numbers, which can be tedious for large values. This tool uses the Euclidean algorithm to find the GCD efficiently, then divides both values to produce the simplified form. The result is displayed as A:B in its simplest terms.

All calculations happen in your browser with JavaScript. No data is uploaded to any server, no account is needed, and the tool remains functional even without an internet connection after the page has loaded.

Calculator

Results

How to Use

  1. Enter Value A in the first input field.
  2. Enter Value B in the second input field.
  3. View the simplified ratio, decimal equivalent, and percentage.

FAQ

What does simplified ratio mean?

A simplified ratio divides both sides by their greatest common divisor (GCD) so the ratio is expressed in the smallest possible whole numbers. For example, 10:15 simplifies to 2:3.

Can I use decimal inputs?

The tool works best with whole numbers for ratio simplification. Decimal inputs will be used for the decimal and percentage outputs but the simplified ratio may not reduce cleanly.

What does A as % of Total mean?

It shows what percentage A represents of the sum of A and B. For example, if A is 3 and B is 7, A is 30% of the total (10).

Is my data safe in the browser?

Yes. All calculations run locally in your browser using JavaScript. No data is sent to any server.

Part of These Collections

Curated tool sets for specific workflows