Ratio and proportion calculator

Simplify a ratio, find the missing value of a proportion, turn a ratio into a percentage or fraction, share a total and resize keeping the aspect

loading Ratio and proportion calculator
About this tool

What is a ratio and proportion calculator?

A ratio compares two quantities: 3 parts flour to 2 parts sugar is the ratio 3:2. A proportion says that two ratios are equal: 3:12 = 5:20. This ratio calculator handles the five jobs that come up most often: simplifying a ratio to its lowest terms, finding the missing value of a proportion, turning a ratio into a decimal, percentage and fraction, sharing a total in a given ratio, and working out an aspect ratio (and resizing an image or video while keeping it).

Typical uses: reducing 24:36 to 2:3, scaling a recipe or a mix (paint, concrete, cleaning concentrate), splitting a bill or a profit between partners in a ratio such as 3:2, finding out that 1920 × 1080 is 16:9 and what height a 1280-pixel-wide version needs, or converting "3 out of 4" into 75%. Each result comes with the steps, so it also works for homework.

The tool accepts decimals (it scales both terms by a power of ten, then divides by the greatest common divisor), up to six decimal places, and rejects negative values and zero divisors with a message that says what to change. It runs in your browser and your numbers are not sent anywhere. For a problem phrased as "if A is for B, then C is for how much?", the rule of three page is dedicated to it.

How to use the ratio calculator

  1. Choose the task: simplify, find X in a proportion, convert to percentage and fraction, share a total or aspect ratio.
  2. To simplify, enter the two terms A and B. The result is the simplified ratio and the greatest common divisor.
  3. To find X, fill A, B and C in "A is to B as C is to X" and read X.
  4. To convert, enter A and B and read the decimal (A ÷ B), the percentage, the fraction, and the share of each term in the whole.
  5. To share a total, type the ratio with colons (such as 3:2 or 1:2:3) and the total. Each part and its value appear with the steps.
  6. For aspect ratio, enter width and height, and optionally a new width or height to get the other side.

Examples

Simplify 24:36

The greatest common divisor of 24 and 36 is 12, so the ratio simplifies to 2:3. With decimals, 1.5:2.5 is multiplied by 10 to give 15:25 and then divided by 5, giving 3:5.

Find X in a proportion

3 is to 12 as 5 is to X. X = (12 × 5) ÷ 3 = 20.

Ratio to percentage

3 out of 4: 3 ÷ 4 = 0.75, which is 75% and the fraction 3/4. As parts of a whole of 3 + 4 = 7, the first is 42.86% and the second 57.14%.

Share a total

Split 500 in the ratio 3:2. The sum of the terms is 5, each unit is worth 500 ÷ 5 = 100, so the parts are 300 and 200. For 600 in the ratio 1:2:3 the parts are 100, 200 and 300.

Aspect ratio

1920 × 1080 reduces to 16:9. Keeping that ratio, a width of 1280 needs a height of 720. A 1080 × 1350 image is 4:5, the usual portrait size for social networks.

Common mistakes

  • Confusing ratio and fraction. 3:2 means 3 parts to 2 parts, 5 parts in total; the fraction of the whole is 3/5 and 2/5.
  • Swapping the order of the terms. 2:3 and 3:2 are different ratios. Keep the same order on both sides of a proportion.
  • Mixing units. Convert both quantities to the same unit before comparing (minutes with minutes).
  • Zero or negative terms. B cannot be 0 when the ratio divides by it, and ratios do not accept negative values here.
  • Rounding pixel sizes. Resizing keeping the aspect ratio can give a fraction of a pixel; the tool shows the value rounded to whole pixels.
  • Using too many decimals. At most six decimal places are accepted.

Frequently asked questions

How do I simplify a ratio?

Divide both terms by their greatest common divisor. For 24:36 that is 12, giving 2:3.

How do I find a missing value in a proportion?

For A : B = C : X, multiply B by C and divide by A. That is the rule of three.

How do I divide an amount in a given ratio?

Add the terms of the ratio, divide the total by that sum to get the value of one unit and multiply by each term.

How do I find the aspect ratio of an image?

Divide width and height by their greatest common divisor. 1920 × 1080 gives 16:9.

How do I turn a ratio into a percentage?

Divide the first term by the second and multiply by 100, or use the percentage calculator.

Report a problem