Ratio Calculator

Simplified ratio

3:2

A divided by B

1.5

All results
Calculator inputs
?

Choose simplification, solving one missing proportion term, scaling both terms, or allocating a total in the stated ratio.

?

Decimals, a/b fractions and scientific notation; up to 200 coefficient digits. Exact text is retained where supported. Quote long inputs as strings in API requests. In proportion mode, the selected missing term is ignored; its field may be blank.

?

Decimals, a/b fractions and scientific notation; up to 200 coefficient digits. Exact text is retained where supported. Quote long inputs as strings in API requests. Simplification keeps the legacy nonzero second-term rule. Proportion denominators B and D must be nonzero.

Each nonnegative part as a share of the combined whole

The percentages divide each part by A+B. A:B and A/B are different quantities from A/(A+B). Negative-term ratios are not drawn as physical part shares.

First part A60 %
Second part B40 %

Exact ratio working and checks

Exact ratio working and checks
StepExact working
Entered / solved first pair12 : 8
Normalized pair3:2
Quotient1.5

Pixel dimensions and their exact square-pixel ratios

Original arithmetic examples, not device recommendations. 1366:768 simplifies to 683:384; calling it exactly 16:9 would lose information. Non-square pixel display metadata is outside this table.

Pixel dimensions and their exact square-pixel ratios
Width × heightExact ratioWidth / height
1920 × 108016:91.777778
1500 × 10003:21.5
1280 × 8008:51.6
1024 × 7684:31.333333
1200 × 12001:11
1080 × 19209:160.5625
1366 × 768683:3841.778646

How to use the Ratio Calculator

Simplify exact decimal or fractional ratios, solve a missing proportion term, scale a ratio or split an entered total into two parts.

  1. 1. Enter your inputs

    Start with Ratio operation, A · first term, B · second term. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Simplified ratio, A divided by B. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Exact coefficient inputs up to 200 digits, bounded scientific exponents. This is a two-term ratio tool; it does not infer units, prices, probability odds or aspect-ratio metadata.

    See the worked example and method

Understanding the Ratio Calculator: uses, inputs and results

The Ratio Calculator reduces two integer quantities to a common ratio and shows their decimal quotient.

Am I comparing two parts, scaling amounts or dividing a total?

Those are related but different tasks. Simplifying a ratio preserves a relationship; scaling changes the amounts on both sides of the colon; solving a proportion finds a missing compatible term; splitting a total turns part weights into actual shares. Selecting the task prevents an A:B comparison from being mistaken for two percentages of a whole.

Exact rational inputs are useful for recipe measurements, dimensions and classroom proportions where a decimal approximation would obscure a simple relationship. The working table shows the normalized pair or cross-product check rather than merely returning one unexplained number.

How should I choose the input units and order?

Keep first and second meanings consistent throughout. Width:height and height:width give different ratios. Convert compatible measurement units yourself before comparing their raw numbers, and use a positive scale factor when you intend to preserve the relationship.

When does a ratio stop behaving like a physical split?

Signed mathematical ratios can be valid algebraically, but negative part weights do not describe the nonnegative share model. Sharing therefore validates its domain separately. Proportion denominators also require care: zero can create an impossible or nonunique equation rather than a single missing number.

Further reading: OpenStax: proportions and applications

What do the Ratio Calculator inputs mean?

Ratio operation
Choose simplification, solving one missing proportion term, scaling both terms, or allocating a total in the stated ratio.
A · first term
Decimals, a/b fractions and scientific notation; up to 200 coefficient digits. Exact text is retained where supported. Quote long inputs as strings in API requests. In proportion mode, the selected missing term is ignored; its field may be blank.
B · second term
Decimals, a/b fractions and scientific notation; up to 200 coefficient digits. Exact text is retained where supported. Quote long inputs as strings in API requests. Simplification keeps the legacy nonzero second-term rule. Proportion denominators B and D must be nonzero.
C · third term
Decimals, a/b fractions and scientific notation; up to 200 coefficient digits. Exact text is retained where supported. Quote long inputs as strings in API requests. This field applies when Ratio operation is set to Solve A:B = C:D.
D · fourth term
Decimals, a/b fractions and scientific notation; up to 200 coefficient digits. Exact text is retained where supported. Quote long inputs as strings in API requests. This field applies when Ratio operation is set to Solve A:B = C:D.
Missing term
Select the one unknown in A:B = C:D. That field is ignored; enter the other three terms. B and D must be nonzero in a valid proportion. This field applies when Ratio operation is set to Solve A:B = C:D.
Scale factor
Positive common multiplier or divisor. Both terms change; their proportional relationship does not. This field applies when Ratio operation is set to Scale both terms.
Scale direction
Multiply enlarges both terms by the positive scale factor; divide shrinks both terms by that factor. This field applies when Ratio operation is set to Scale both terms.
Total to split
Nonnegative total in your chosen unit. A:B describes two nonnegative part weights, not percentages of each other. This field applies when Ratio operation is set to Split a total.

When is the Ratio Calculator useful?

Simplify a proportion

Enter two integers to compare the original and reduced ratio.

Translate a ratio into a quotient

Review the decimal value when comparing proportions. Keep the order of the two quantities consistent.

Ratio Calculator: a practical reference

The fixed “Legacy simplification” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Ratio operation
Simplify A:B
A · first term
12
B · second term
8
Simplified ratio
3:2
A divided by B
1.5
Review the example inputs and calculation

Use the result in context

Exact coefficient inputs up to 200 digits, bounded scientific exponents. This is a two-term ratio tool; it does not infer units, prices, probability odds or aspect-ratio metadata.

Try the Ratio Calculator·Read the subject guide·Explore a related calculator

Worked example: Ratio Calculator

Legacy simplification. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Ratio operation
Simplify A:B
A · first term
12
B · second term
8
Calculated results for the fixed example
Calculated quantityExample result
Simplified ratio3:2
A divided by B1.5

Ratio Calculator: preserving relationships while amounts change

What does A:B mean, and what does it leave out?

A:B compares the first amount with the second. It does not automatically say what fraction either amount occupies in their combined total. In a 4:1 split, the first amount is four times the second, but its share of the whole is 4 ÷ 5 = 80%, not 400%.

The order matters. Width:height and height:width are reciprocal relationships. A ratio also does not erase units: comparing meters with centimeters requires conversion to a common unit before interpreting the numbers as a same-dimension relationship. This calculator does not guess that conversion.

OpenStax: proportions and applications

How can decimals and fractions simplify to an integer ratio?

A common scale can turn the terms into integers without changing their relationship. The decimal ratio 3.5:2.25 becomes 14:9 when both terms are multiplied by four. The fraction ratio 5/6:1/3 becomes 5:2 after a common denominator is removed.

The model handles those rational relationships exactly and divides the resulting integer pair by its greatest common divisor. A decimal quotient may still be approximate. The normalized second term is positive when it is nonzero, which keeps signed inputs consistent with the existing ratio convention.

How do I find a missing number in a proportion?

For A:B = C:D, the fraction interpretation A/B = C/D requires nonzero B and D. Multiplying both sides gives AD = BC. If A = 7, B = 5 and C = 42, then D = 5 × 42 ÷ 7 = 30. The selected missing field is ignored, so only the other three entered values determine the answer.

Zero cases should not be forced through a division. In 0:B = 0:7, every nonzero B works, so there is no unique answer. A cross-product identity by itself is not permission to use a zero denominator. The result panel distinguishes a solvable term from nonunique or impossible cases.

Should I scale both terms or split a known total?

Scaling changes actual term amounts by the same positive factor. Multiplying 14:9 by 2.5 gives 35:22.5; dividing by 2.5 gives 5.6:3.6. Both preserve the simplified relationship. This is useful when checking a resized drawing or two-component recipe measured consistently.

Splitting starts from a combined total. At 4:1 and a total of 250 units, the shares are 200 and 50. The total is not multiplied by each raw term; it is multiplied by each term’s fraction of A+B. Sharing requires nonnegative part weights with a positive combined weight. Zero can legitimately give one part no share.

Is a rectangle close to 16:9 exactly 16:9?

Not always. A square-pixel rectangle of 1920 × 1080 simplifies exactly to 16:9. A rectangle of 1366 × 768 simplifies to 683:384. Calling the second one exactly 16:9 discards a small difference. The comparison table computes the exact width:height ratio from its own integer dimensions.

This is a geometric table of square-pixel examples, not a specification for every video signal or display device. Pixel-shape metadata can change the display interpretation of stored pixel counts. Keep that distinction when using a ratio calculation to check a media layout.

How can I check the result myself?

For simplification, multiply the reduced pair by a common factor to recover the original relationship. For a solved proportion, compare the two exact cross products while retaining valid denominators. For a split, add the two exact shares and check that they recover the entered total.

The working table exposes those checks. Exact ratio and share strings remain available even when the decimal approximation or drawing cannot distinguish extremely small quantities. Negative mathematical ratios are supported where stated, but are not shown as physical percentage shares.

Formula and calculation method

Simplification converts entered decimal/fraction terms to exact rational values and divides their integer pair by the greatest common divisor. The normalized second term is positive when nonzero.

Proportion mode solves AD = BC while requiring nonzero B and D. Missing-denominator cases can have no unique solution; the selected unknown input is ignored.

Scaling multiplies or divides both terms by a positive common factor. Splitting uses first = total × A/(A+B), second = total × B/(A+B), with nonnegative parts and A+B > 0.

Exact ratio and share strings are retained. A decimal quotient can be a floating-point approximation. The comparison pixel table assumes square pixels; it is not a catalog of broadcast display standards.

Scope and Limitations

  • Exact coefficient inputs up to 200 digits, bounded scientific exponents. This is a two-term ratio tool; it does not infer units, prices, probability odds or aspect-ratio metadata.

Reference Sources

Frequently asked questions

How do I simplify a decimal ratio?

Convert both terms to an exact integer pair using a common scale, then divide by their greatest common divisor. For example, 3.5:2.25 simplifies to 14:9.

How do I solve A:B = C:D?

Choose the missing term and enter the other three. The model solves AD = BC and keeps B and D nonzero; some zero cases have no unique solution.

How do I split 250 in a 4:1 ratio?

There are five combined parts. The shares are 250 × 4/5 = 200 and 250 × 1/5 = 50.

Is A/B the same as A/(A+B)?

No. A/B compares the two parts; A/(A+B) is the first part’s share of the combined whole.

Can I use fractions as ratio inputs?

Yes. A decimal, a/b fraction or supported scientific-notation value can be entered. Exact ratios are preserved separately from numeric approximations.