Loona Calculators
Loona Calculators › Math › Ratio Calculator

➗ Ratio Calculator

Simplify any ratio to its simplest whole-number form — and if you add a total, split that total between the two sides in exactly the same proportion.

How to use the Ratio Calculator

  1. Enter the two values of your ratio (A and B).
  2. Optionally enter a total to split in this ratio.
  3. Press Calculate — the simplified ratio and the shares appear below.
Example: The ratio 500 : 250 simplifies to 2 : 1. Splitting a total of 900 in the ratio 2 : 1 gives 600 for the first share and 300 for the second.

Frequently Asked Questions

How is a ratio simplified?

Both sides are divided by their greatest common divisor (decimals are first scaled into whole numbers), giving the smallest whole-number ratio with exactly the same proportion.

What can I split with a ratio?

Money between partners, ingredients in a recipe, time between tasks — anything that must be divided in a fixed proportion.

Does the order matter?

Yes — 2 : 1 is the opposite split of 1 : 2. The first share always belongs to the first value you enter.

How it works — the formula

To simplify a ratio, the calculator first clears any decimals: both values are multiplied by 10 raised to the number of decimal places involved (up to six), turning them into whole numbers. It then finds the greatest common divisor of the two whole numbers and divides both sides by it, leaving the simplest whole-number ratio. The two simplified parts are added together to give the total number of parts. If you also enter a total to split, each share is that total multiplied by its part and divided by the total parts — so the shares always keep exactly the proportion of the simplified ratio.

Formula: Simplified ratio = (A ÷ GCD) : (B ÷ GCD); share of A = total × A-part ÷ (A-part + B-part), and likewise for B.

Worked example

Inputs: First value (A) 45; second value (B) 60; total to split 2,100.

Steps: The greatest common divisor of 45 and 60 is 15, so 45 : 60 simplifies to 3 : 4, which is 7 parts in total. Splitting 2,100 across 7 parts gives 300 per part, so the first share is 3 × 300 = 900 and the second share is 4 × 300 = 1,200.

Result: Simplified ratio 3 : 4 — shares of 2,100 are 900 and 1,200.

Frequently asked questions

Can it simplify a ratio that contains decimals?

Yes. Decimals are scaled into whole numbers first, so 2.5 : 1.5 becomes 25 : 15 and then simplifies to 5 : 3.

What if the two values have no common factor?

Then the ratio is already in its simplest form and is shown unchanged — for example, 7 : 5 stays 7 : 5, with 12 total parts.

Do the two shares always add back up to the total?

Yes. Each share is an exact proportion of the total you entered, so together they make up the whole amount (the figures are displayed rounded to two decimal places).

What happens if I leave the “total to split” box empty?

You still get the simplified ratio and the total number of parts — just without the split amounts, because there is no total to divide.

Can I split something three ways with this calculator?

This tool handles two values at a time. For three shares, do it in two steps: first split the total between the first share and the other two combined, then split that remainder between the second and third with a second ratio.

Related Calculators

%

Percentage Calculator

Math

🔢

Average Calculator

Math

🍕

Fraction Calculator

Math

📅

Age Calculator

Date & Time

√

Square Root Calculator

Math

Embed this calculator on your website — free

Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.