Ratio Calculator
Enter non-negative whole numbers or decimals. Both values cannot be zero. Up to 12 decimal places are supported.
Leave exactly one value blank. The calculator solves A : B = C : D. Denominators B and D must be nonzero. Inputs may contain up to 12 decimal places.
Ratio results are mathematical estimates where rounding is required.
What Is a Ratio Calculator?
A ratio calculator is an online tool that helps you compare two or more quantities, simplify ratios, find missing values, and calculate equivalent proportions. It makes ratio calculations easier by performing the mathematical steps automatically.
Ratios are commonly used in mathematics, cooking, construction, photography, design, and everyday measurements. They show how one quantity relates to another. For example, a ratio of 2:3 means that for every 2 parts of the first quantity, there are 3 parts of the second quantity. If both values are doubled, the ratio becomes 4:6, but the relationship remains unchanged.
You can also use use this Money Calculator.
The calculator can work with two-number ratios, three-number ratios, decimals, and scaling operations.
How Does a Ratio Calculator Work?
The calculator compares quantities and uses division or multiplication to determine their proportional relationship. Depending on the selected operation, it can simplify a ratio, calculate a missing value, or scale all terms while keeping the same proportions.
Ratio Calculator Formula
A ratio between two quantities is written as:
A : B
To simplify it, divide both numbers by their greatest common divisor (GCD).
Simplified Ratio = (A ÷ GCD) : (B ÷ GCD)
For example, consider the ratio 12:18.
The greatest common divisor of 12 and 18 is 6.
12 ÷ 6 = 2
18 ÷ 6 = 3
Therefore:
12:18 = 2:3
Both ratios express the same proportional relationship.
How to Use the Online Ratio Calculator
You can calculate proportions in a few simple steps.
- Select the calculation type, such as simplifying or comparing ratios.
- Enter two or three numbers in the provided fields.
- Add known values if you need to solve a proportion.
- Select a scaling operation when increasing or decreasing quantities.
- Click Calculate to view the result.
For example, entering 15:25 in a simplification calculation gives 3:5. When comparing two ratios, the tool can also determine whether they are equivalent.
How to Calculate a Ratio Between Two Numbers
To calculate a ratio between two numbers, write them in the required order and simplify them using their greatest common divisor.
Suppose a classroom contains 18 boys and 24 girls.
The ratio of boys to girls is:
18:24
The greatest common divisor is 6.
18 ÷ 6 = 3
24 ÷ 6 = 4
Final Ratio = 3:4
This means there are 3 boys for every 4 girls. The order matters. The ratio of girls to boys would be 4:3.
How to Calculate a Ratio of Three Numbers
Three-term ratios compare three quantities instead of two. For example, suppose three ingredients are mixed in the ratio 6:9:12. Find the greatest common divisor of all three numbers.
GCD of 6, 9, and 12 = 3
Divide each term by 3:
6 ÷ 3 = 2
9 ÷ 3 = 3
12 ÷ 3 = 4
Simplified Ratio = 2:3:4
Three-number ratios are useful for recipes, material mixtures, and proportional distribution.
How to Find a Missing Ratio Value
A proportion states that two ratios are equivalent.
For example:
A = C
This can be written as:
A/B = C/D
Using cross multiplication:
A × D = B × C
To find D:
D = (B × C) ÷ A
Example Calculation
Suppose:
3:5 = 12
Apply the formula:
X = (5 × 12) ÷ 3
X = 60 ÷ 3
X = 20
Therefore:
3:5 = 12:20
Both ratios simplify to the same relationship.
This method is useful when adjusting quantities while maintaining their original proportions.
Equivalent Ratios and Scaling
Equivalent ratios represent the same relationship even when their values differ.
For example:
2:3 = 4:6 = 6:9 = 10:15
Each ratio can be simplified to 2:3.
To create an equivalent ratio, multiply or divide every term by the same nonzero number.
Scaling a Ratio
Suppose a recipe uses ingredients in the ratio 1:2:3.
If you want to prepare four times the original amount, multiply every term by 4.
1 × 4 = 4
2 × 4 = 8
3 × 4 = 12
The scaled ratio is:
4:8:12
The quantities increase, but their relative proportions remain unchanged.
How to Convert a Ratio into a Percentage
A ratio can also be expressed as percentages when its terms represent parts of a whole.
Consider the ratio 2:3.
First, add the terms:
2 + 3 = 5
Calculate the percentage represented by each part:
First part:
(2 ÷ 5) × 100 = 40%
Second part:
(3 ÷ 5) × 100 = 60%
Therefore, the ratio 2:3 represents a division of the whole into 40% and 60%. This is useful for budgets, mixtures, surveys, and data comparisons.
How to Convert a Percentage into a Ratio
Percentages can be converted into ratios by writing the percentage over 100 and simplifying. For example, convert 25% into a part-to-whole ratio.
25:100
Divide both terms by 25.
25:100 = 1:4
This means the quantity represents one-quarter of the whole. If you want a part-to-remaining-part ratio instead, compare 25% with the remaining 75%.
25:75 = 1:3
The correct format depends on what the quantities represent.
Using Ratios for Images and Pixels
Ratios are important in photography, video production, and digital design. An image aspect ratio compares its width with its height. For example, an image measuring 1920 × 1080 pixels has a width-to-height ratio of:
1920:1080
Divide both values by 120.
Aspect Ratio = 16:9
Common image proportions include:
| Aspect Ratio | Example Resolution | Common Use |
|---|---|---|
| 1:1 | 1080 × 1080 | Square images |
| 4:3 | 1600 × 1200 | Photography |
| 16:9 | 1920 × 1080 | Widescreen video |
| 9:16 | 1080 × 1920 | Vertical video |
| 3:2 | 1500 × 1000 | Photography |
Maintaining the same aspect ratio when resizing helps prevent image distortion.
Calculating Ratios for Milliliters and Grams
Ratios are useful when mixing liquids or combining measured ingredients.
Example: Liquid Mixture
Suppose two liquids must be mixed in a 1:2 ratio, and you want 900 mL of the final mixture.
Add the ratio terms:
1 + 2 = 3
Each part represents:
900 ÷ 3 = 300 mL
First liquid:
1 × 300 = 300 mL
Second liquid:
2 × 300 = 600 mL
The mixture contains 300 mL of the first liquid and 600 mL of the second, assuming their volumes are additive.
Example: Weight Ratio
Suppose two ingredients must be combined in a 3:2 ratio by weight, with a total mass of 500 grams.
Total parts = 5
500 ÷ 5 = 100 grams per part
First ingredient = 300 grams
Second ingredient = 200 grams
Always use consistent units when comparing quantities. Ratios by weight and ratios by volume are not automatically interchangeable.
How to Calculate Ratios in Excel
Microsoft Excel can simplify numerical ratios using the GCD function. Suppose cell A1 contains 24 and cell B1 contains 36. For positive whole numbers, enter the following formula:
=A1/GCD(A1,B1)&":"&B1/GCD(A1,B1)
Excel returns:
2:3
For ratios containing decimals, convert the values into suitable whole-number equivalents before using this approach. Excel can also calculate missing proportional values using multiplication and division formulas.
Where Are Ratio Calculations Used?
Ratios are useful in many practical situations.
Cooking: Adjust ingredient quantities when preparing larger or smaller servings.
Construction: Compare quantities of materials in specified mixtures.
Finance: Compare expenses, income, savings, and other financial figures.
Photography: Maintain image dimensions when resizing pictures.
Education: Solve mathematical proportions and simplify numerical relationships.
Manufacturing: Measure ingredient or material proportions during production.
Design: Maintain consistent dimensions in layouts, graphics, and illustrations.
Understanding ratios helps ensure that quantities remain proportional when values change.
Frequently Asked Questions
How do I simplify a ratio?
Find the greatest common divisor of the ratio terms and divide every term by that number. For example, 20:30 simplifies to 2:3.
Can I calculate a ratio using three numbers?
Yes. A three-number ratio compares three quantities. For example, 4:8:12 simplifies to 1:2:3.
What does a 1:2 ratio mean?
A 1:2 ratio means there is one part of the first quantity for every two parts of the second quantity. If the two parts make up the entire mixture, they represent one-third and two-thirds of the total.
How do I know if two ratios are equal?
Convert both ratios into fractions and compare their values. For example, 2:3 and 8:12 are equivalent because both represent the fraction 2/3.
Can I use decimals in ratio calculations?
Yes. Ratios can contain decimals. For example, 1.5:2.5 can be multiplied by 2 to become 3:5.
Is a ratio the same as a fraction?
A ratio compares quantities, while a fraction commonly represents division or part of a whole. Ratios can be written as fractions, but their interpretation depends on the quantities being compared.
Calculate Ratios Quickly and Accurately
Use the calculator above to simplify ratios, solve missing values, compare proportions, and scale quantities. Enter your numbers, choose the required calculation, and view the result. Whether you are working with mathematical problems, ingredient measurements, or image dimensions, the tool provides a convenient way to calculate proportional relationships without lengthy manual calculations.