Home

Ratio Calculator

Simplify ratios, solve a proportion, split a total or compare a part with the whole. See exact shares and steps using your numbers.

Enter your numbers

Live calculation
Try an example:

To find the ratio of two numbers, enter them in the order you want to compare them. Divide both 12 and 18 by 6 to get 2 : 3.

Enter the first number, such as 12. Use zero or a positive number.

Enter the second number, such as 18. Use zero or a positive number.

Results update as you type. Example values are editable.

Simplified ratio

2 : 3

Equivalent whole-number parts in their lowest terms.

Shares of the whole
Part A: 40%
Part B: 60%

A share uses A + B as the whole. Bar widths are rounded to 0.01%; calculations use exact shares.

See the steps
  1. Convert the decimal inputs to exact fractions and clear their denominators.
  2. Divide both whole-number weights by their greatest common divisor to get 2 : 3.
  3. Part A is 2 / 5 of the whole; Part B is 3 / 5.

Inputs stay on this page. Reloading clears unsaved changes.

How it is calculated
Clear the denominators, then divide both whole-number parts by their greatest common divisor. A : B compares two parts. Their shares of the whole are A ÷ (A + B) and B ÷ (A + B), not A ÷ B. Inputs are nonnegative decimal numbers up to 1 trillion; fraction notation is not supported. Calculations use exact fractions; decimal displays use up to 12 significant digits.

Ratio Calculator

CalcsDecoded.com

Simplified ratio

2 : 3

Equivalent whole-number parts in their lowest terms.

Ratio shares of the whole

Part A: 40% · Part B: 60%

Inputs used

  • What do you want to calculate?: Simplify A : B
  • A: 12
  • B: 18

Method and assumptions

Clear the denominators, then divide both whole-number parts by their greatest common divisor. A : B compares two parts. Their shares of the whole are A ÷ (A + B) and B ÷ (A + B), not A ÷ B. Inputs are nonnegative decimal numbers up to 1 trillion; fraction notation is not supported. Calculations use exact fractions; decimal displays use up to 12 significant digits.

Examples and assumptions

Simplify a ratio, solve a proportion, split a total or compare a selected part with the whole. See the difference between part-to-rest and part-to-whole ratios, with exact shares and steps.

Simplify 12 to 18

2 : 3.

Divide both weights by 6. Part A is 2/5 = 40% of the whole.

Find the missing value

X = 24.

3X = 9 × 8, so X = 24.

Split $240

Part A $96.00; Part B $144.00.

There are five parts. One part is $48, so the amounts are 2 × $48 and 3 × $48.

Recipe: 750 grams

Part A 300 grams; Part B 450 grams.

750 × 2/5 = 300 and 750 × 3/5 = 450. Both quantities use the unit of your total.

Part versus the rest: 8 of 21

Part to rest: 8 : 13. Part to whole: 8 : 21.

21 − 8 = 13 remain. The selected share is 8/21, about 38.10%; it is not 8/13.

Before you use the result

  • Part-within-whole mode requires a positive whole and a selected part between zero and the whole, in matching units.
  • Two nonnegative decimal weights up to 1 trillion; fraction notation is not supported. Both weights cannot be zero.
  • Number mode keeps exact fractional quantities; an ≈ marks a rounded display. It does not allocate indivisible items.
  • Money (USD) accepts whole-cent totals. Largest fractional remainders receive leftover cents; ties go to Part A. This can slightly change the target ratio while preserving the total.
Calculation checks and references

Reference cases cover all four modes, part-to-rest versus part-to-whole ratios, empty and complete selections, exact decimal shares, zero weights, repeating fractions, whole-cent conservation and ties. The diagram uses shares of A + B, not A/B.

Reference cases checked: . Checks are automated reference calculations; an independent professional review is not claimed.

References explain definitions, rules or context; they do not endorse CalcsDecoded.com. See our calculation methodology for the testing and updating standard.

Frequently asked questions

How do I compare a part with the rest of a group?

Choose Compare a part with the whole. For 8 selected out of 21, the rest is 21 − 8 = 13. The part-to-rest ratio is 8 : 13, while the part-to-whole ratio is 8 : 21.

How do I split a total in a ratio?

Choose Split a total. For 240 in the ratio 2 : 3, the five parts are worth 48 each: Part A is 96 and Part B is 144.

How are money amounts rounded?

Choose Money (USD) and enter a total in whole cents. Whole cents are allocated by largest fractional remainders; ties go to Part A. The two amounts add up exactly to your total.

Is a 2 : 3 ratio the same as 2/3 of the whole?

No. The whole has 2 + 3 = 5 parts. Part A is 2/5 = 40% and Part B is 3/5 = 60%.

Can I simplify a decimal ratio?

Yes. Decimal values are converted to exact fractions before simplifying, so 0.5 : 0.75 becomes 2 : 3.

How do I find a missing value?

Choose the proportion mode, enter A, B and C, and solve A : B = C : X using X = B × C ÷ A. A and C must be positive.

Are zeros allowed?

A single zero is allowed when simplifying. The ratio 0 : 0 is undefined. Inputs must be nonnegative.