Skip to content

Math

Ratio Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Find the missing term

Fill in any three boxes of A : B = C : D and the fourth is found.

Ratio A : B = C : D
Screen shapes for A : B

Missing term D

800

3 : 4 = 600 : 800

A : B in lowest whole numbers
3 : 4
A : B written with a 1
1 : 1.3333333333333 = 0.75 : 1
Share of A and of B in the whole
42.857142857143% and 57.142857142857%

Pictures of the ratio A : B

Pie chart
Left 3, right 4
Width 4, height 3

Scale a ratio

Make a ratio bigger or smaller by a number of times, for example to resize a picture.

Ratio to scale
Direction
Number of times

250 : 280 shrunk 2.5 times

100 : 112

Before (250 by 280) and after (100 by 112), drawn to the same scale

How to use

  1. Type any three of the four boxes in A : B = C : D and leave one empty. The empty one is worked out for you.
  2. Read the missing term, the ratio in lowest whole numbers, the same ratio written with a 1, and the share each side has of the whole.
  3. Fill all four boxes to check whether two ratios are the same, for example whether a photo keeps its shape when resized.
  4. To enlarge or shrink a ratio, use the scaling box: give the two terms, pick Enlarge or Shrink and enter how many times.

Formula

A : B = C : D means A / B = C / D, so D = B x C / A, C = A x D / B, B = A x D / C and A = B x C / D. Lowest terms: divide both terms by their greatest common divisor (after clearing decimals). Share of A = A / (A + B). Enlarging multiplies both terms by the factor; shrinking divides both by it.

Example

A recipe uses sugar to flour in the ratio 3 : 4. With 600 g of sugar, the flour is 4 x 600 / 3 = 800 g, so 3 : 4 = 600 : 800. Sugar is 3 / 7 = 42.857% of the mix. A 16 : 9 screen that is 1,920 pixels wide is 1,080 pixels tall.

Every number is kept exactly while it is solved, so 0.1 : 0.3 is 1 : 3 with no rounding noise. A and C cannot be zero when they are the divisor, and B and D can never be zero, because a ratio A : B stands for A divided by B. Results show up to 14 significant digits.