Ratio calculator guide: simplify, scale and solve proportions
A ratio compares quantities while preserving their order. Writing 2:3 means two units of the first quantity for every three units of the second. It does not say how large the overall batch is, what the units are or whether the quantities represent parts of a larger total. Those details come from the problem. This ratio calculator makes the arithmetic visible while keeping the comparison itself separate from the assumptions you bring to it.
The worksheet offers four modes: simplify a ratio, solve a missing value in a proportion, scale both terms, and split a total according to a ratio. Each mode includes sliders, exact decimal inputs, worked formulas and a visual comparison. The arithmetic uses exact fractions derived from the decimals you enter. Approximate decimal output and chart positions are labeled separately so that a convenient drawing does not replace the exact relationship.
Keep the order of the terms clear
The ratios 2:3 and 3:2 describe different ordered relationships. If the first term represents red counters and the second represents blue counters, 2:3 means fewer red counters than blue counters. Reversing the terms reverses the comparison. The letters A and B in the worksheet stand for those ordered roles; they do not tell the calculator what either quantity represents.
Write the meaning of each term before entering the values when you are solving a word problem. A ratio of width to height is not interchangeable with height to width. A recipe ratio of water to concentrate must also retain its order. The numeric answer can be correct for the entered sequence while still being the wrong answer to the original question if the roles were swapped.
Simplify a whole-number ratio
Simplifying a ratio divides all of its terms by the same positive common factor. For 18:24, both terms can be divided by 6, giving 3:4. The comparison remains the same because the two amounts are scaled equally. The simpler integers are easier to read, compare and use when constructing another equivalent pair.
The calculator reduces a two-term ratio to its smallest nonnegative integer pair. A ratio with one zero term, such as 0:8, reduces to 0:1 in simplification mode. Both terms cannot be zero because 0:0 does not specify a meaningful relative share. The zero rules for a proportion are stricter because that mode interprets B and D as denominators, a distinction explained separately below.
Simplify ratios that contain decimals
A ratio can contain finite decimal quantities without requiring an approximate answer. To simplify 1.5:2.25, multiply both terms by 100 to get 150:225, then divide by their greatest common divisor of 75. The reduced ratio is 2:3. Scaling both terms by a shared power of ten removes decimal places without changing the relationship.
The tool derives exact fractions from the decimal characters you type, then finds an equivalent integer pair and reduces it. Inputs support up to twelve digits before and twelve after the decimal point. Scientific notation and repeating-decimal notation are not used in these fields. If you enter a rounded decimal, the ratio is exact for that entered value, not for an unknown value that may have existed before rounding.
Distinguish a ratio from a share of the total
In a ratio of 2:3, the first term is two thirds of the second term. However, the first quantity represents two fifths of their combined total because the two parts add to five. Those statements use different denominators. Confusing them can lead to allocating too much or too little when you divide a known total.
The share display uses A divided by A plus B, and B divided by A plus B. For 2:3, the shares are 40% and 60%. It does not report A as a percentage of B in that chart. The label under the visual states this explicitly. If you need the first amount as a percentage of the second, use the Percentage Calculator with those amounts as the part and reference whole.
Split a total according to a ratio
To split 100 in the ratio 2:3, first add the ratio terms to get five parts. Each part is worth 100 divided by 5, or 20. The first allocation is two parts, equal to 40, and the second is three parts, equal to 60. The two allocations add back to the original total and preserve the intended ratio.
In formula form, the first allocation is total multiplied by A divided by A plus B. The second uses B in place of A. The calculator shows these formulas beside the result. The total can be zero, producing two zero allocations while retaining the intended share proportions in the explanatory chart. A zero total does not erase the ratio you asked to use; it means there is nothing to distribute in that particular calculation.
Handle fractional allocations without hiding the remainder
Some totals do not divide into convenient whole amounts. Splitting 10 in the ratio 1:2 produces 10/3 and 20/3. Their exact sum is 10, and their relationship is exactly 1:2. If the outputs are shortened to decimals, the ellipsis indicates that more digits follow. The exact fractions remain available above the chart.
A real allocation may require indivisible units, such as whole objects, or a specific monetary rounding rule. The calculator does not silently assign the leftover unit to one side. Decide the applicable rule separately and check that the rounded allocations still add to the original total. Reporting an exact mathematical split and implementing a practical distribution are related tasks, but they are not always identical.
Scale both terms by the same factor
Scaling a ratio multiplies each term by a chosen factor. Starting with 2:3 and multiplying both sides by 4 gives 8:12. The simplified ratio remains 2:3. A factor smaller than one makes both quantities smaller; a factor larger than one makes them larger. Scaling is useful when the relationship is fixed and you need to change the size of the example or batch.
The factor must be positive in this tool. A zero factor would produce 0:0 and lose the relationship, while a negative factor falls outside the nonnegative quantity model used here. To reduce quantities by half, enter 0.5 rather than a negative number. The worked steps show the multiplication and the equivalent simplified ratio so you can confirm both the new amounts and the preserved comparison.
Understand the proportion A:B = C:D
A proportion states that two ratios are equal. In this mode, A:B means A divided by B, and C:D means C divided by D. Therefore B and D must be positive. Cross multiplication gives A multiplied by D equals B multiplied by C. Knowing three suitable terms lets you rearrange that equality to solve for the fourth.
For 2:3 = 4:D, multiply B by C and divide by A. The result is 3 multiplied by 4 divided by 2, giving D = 6. The complete statement is 2:3 = 4:6. You can verify it by simplifying the right-hand ratio to 2:3 or by checking that both quotients equal two thirds. The calculator presents the solved value and the complete proportion together.
Solve for any one of the four terms
The missing-term selector identifies which value should be calculated. The corresponding field and slider are disabled, and their previous contents are ignored. This prevents a stale value from being treated as a fourth known input. The other three entries define the problem, provided the division required to solve it is valid.
The rearrangements are A = B multiplied by C divided by D; B = A multiplied by D divided by C; C = A multiplied by D divided by B; and D = B multiplied by C divided by A. The selected formula is displayed in the steps. If you choose another missing term, inspect the remaining known values before interpreting the new answer because the question has changed.
Recognize proportions with no unique valid solution
Not every set of three values determines a valid fourth term. For example, solving 0:3 = 0:D does not identify a unique positive D, because many positive denominators produce zero on the right. A different set of zeros can make the equality impossible instead. The tool reports the lack of a unique valid answer rather than inventing a denominator.
The calculator also rejects a solved B or D of zero, even when a mechanical rearrangement produces that number. The original ratio-as-division expression would then be undefined. These checks are why a zero-containing pair accepted for simple ratio notation may not be accepted in proportion mode. Read the mode's definition and denominator requirements rather than assuming every operation treats zero in the same way.
Use ratios for dimensions and aspect comparisons
A rectangle with width 1920 and height 1080 has the ratio 16:9 after both dimensions are divided by 120. A rectangle of width 1280 and height 720 reduces to the same ratio. Their dimensions differ, but the proportions match. The ratio calculator can establish that relationship without knowing whether the dimensions refer to pixels, centimeters or another consistent unit.
To find a new height for a chosen width, set the original width and height as A and B, enter the new width as C, and solve for D. The same approach works for many scale drawings. Keep the dimension order consistent, and convert units first if the two sides use different measurement systems. This tool computes proportional dimensions; it does not resize an image file or decide whether a requested resolution will preserve visual quality.
Keep physical units compatible
A numerical ratio is meaningful only with its intended unit relationship. Comparing 100 centimeters with 2 meters without conversion would produce the written pair 100:2, but that is not the same as comparing their lengths in one shared unit. Converting 2 meters to 200 centimeters gives a length ratio of 1:2. The calculator cannot infer the units from the numbers alone.
Some ratios intentionally compare different kinds of units, such as distance per time. Those are rates and can still be useful, but their units must remain attached when interpreting the answer. The visual share chart is most natural for two quantities that can be combined into one total. Do not read a distance-versus-time ratio as if its two terms were interchangeable portions of a single physical quantity.
Understand what the bars and share graphic show
The bar chart uses a shared scale for the amounts in the current calculation. In proportion mode, it displays A, B, C and D after solving. In scaling mode, it displays the scaled amounts; in split mode, it displays the allocations. Each bar has a text value so that the answer can be read without estimating its length or relying on color.
The share graphic represents the relative portions A divided by A plus B and B divided by A plus B. These shares remain unchanged when both terms are multiplied by the same positive factor. The graphics use approximate screen positions, while the exact integer ratios and fractional results stay in the text. Very small parts beside very large parts may be visually thin without being mathematically zero.
Explore with sliders and preserve exact entries
Moving the A slider while keeping B fixed changes the comparison itself. Moving both amounts by the same factor preserves the ratio. The scale mode is useful for exploring the second case directly, because one factor controls both terms. Switching among modes helps distinguish changing a relationship from changing only the overall size of an example.
Each slider is paired with an input field for exact decimal entry. You can type an amount that does not land on a slider step, and the arithmetic uses that typed value. The visual thumb represents the nearest available slider position until you deliberately move it again. Inputs outside the initial slider range expand the range when supported, so you are not restricted to the small example values shown at first.
Check results using cross products and totals
For a proportion, multiply A by D and B by C. Equal cross products confirm the equality when the denominators are valid. For example, 3:5 = 12:20 gives 3 multiplied by 20 and 5 multiplied by 12, both equal to 60. This is a useful independent check when the calculated term looks unfamiliar or is expressed as a fraction.
For a split, add the two exact allocations and compare the result with the entered total. Then compare their relationship with the original ratio. For a scaled pair, divide each new quantity by its original quantity; both factors should match when the originals are nonzero. These checks focus on the meaning of the operation rather than simply repeating the same input and trusting a familiar-looking answer.
Avoid treating a rounded decimal as the original ratio
A decimal such as 0.333 is exactly three hundred thirty-three thousandths, not exactly one third. If that value is entered as a ratio term, the calculation preserves the written finite decimal. It cannot infer that the value was intended to represent a repeating fraction. This matters when values are copied from a display that has already shortened them.
If you know an equivalent integer ratio, enter the integer terms directly. Use the Fraction Calculator when you need to derive an exact fraction from another fraction operation before setting up the ratio. The ratio tool's supported decimal input format is intentionally explicit. An exact answer based on a rounded input remains exact only for that rounded input, not for the unknown number that preceded it.
Interpret errors and preserve the context of your work
Empty fields, unsupported decimal notation and negative amounts produce a message. Both-zero ratios and invalid proportion denominators are also rejected. The result and chart are cleared so that an earlier valid answer is not left on screen beside a new invalid expression. Correct the highlighted problem or choose the mode that matches the calculation you intended.
All arithmetic and visual rendering occur in the browser. The page does not store a permanent ratio history or upload your worksheet. When recording a result elsewhere, include the mode, input values, units and definition of each term. That context turns an unexplained pair of numbers into a calculation someone else can reproduce. A ratio is most useful when both its arithmetic and the quantities it compares remain clear.