Math Calculator

Ratio Calculator

Simplify ratios, scale quantities and divide a total with exact steps.

Ratio inputs

Compare parts and keep their exact relationship.

Nonnegative decimal, scientific e notation, or integer fraction; use consistent units.

Choose a ratio workflow

Changing mode preserves existing source values; comparison uses the first two parts.

Nonnegative decimal, scientific e notation, or integer fraction; use consistent units.

Exact fractions and integer ratios do not change when this setting changes.

Use two through ten nonnegative parts for simplification, scaling or division. Decimal inputs retain sixty significant digits and scientific exponents from negative one hundred through positive one hundred. Integer fraction sources retain sixty digits per integer. Exact results are bounded to eighteen hundred digits. Rounded displays use half-away-from-zero rounding and scientific notation for very large or sub-resolution nonzero values. Convert unlike units first; repeating-decimal conversion is available in the Fraction Calculator.

Simplify a ratio

2:32\mathbin{:}3

All inputs are exact source strings. Quantity ratios use nonnegative parts; zero parts stay visible. Percentages describe a part of the combined total. Indivisible-item allocation may change the achieved ratio.

Your ratio calculation step by step

  1. Clear the exact rational denominators

    L=1,(12,18)L=(12,18)L=1,\qquad (12,18)L=(12,18)

    Multiply every source value by the same least common denominator. Fractions and decimal strings become integers without rounding.

  2. Reduce the common integer factors

    g=6,12:18=2:3g=6,\qquad 12\mathbin{:}18=2\mathbin{:}3

    Divide every integer part by the greatest common divisor of the nonzero parts. Keep zero parts in their original positions.

Inputs saved with this calculation

Calculation mode
Simplify a ratio
Entered ratio parts
Part 1: 12; Part 2: 18
Rounded decimal places
6

All result details

The table retains exact source quantities, simplified units and shares. Scaling includes the common factor and each result amount; whole-item division also retains the ideal amounts. Approximate decimal displays are marked. Very long expressions scroll on screen; print uses a notice and CSV retains every digit.

Ratio calculation details
QuantityExact valueRounded decimalInterpretation
Entered part 112121212Exact value retained; display precision applies only to the decimal column.
Entered part 218181818Exact value retained; display precision applies only to the decimal column.
Sum of entered quantities30303030Exact value retained; display precision applies only to the decimal column.
Reduced part 12222Exact value retained; display precision applies only to the decimal column.
Reduced part 23333Exact value retained; display precision applies only to the decimal column.
Total simplified units5555Exact value retained; display precision applies only to the decimal column.
Part 1 share of total40%40\%40%40\%The denominator is the sum of all entered quantities.
Part 2 share of total60%60\%60%60\%The denominator is the sum of all entered quantities.
First per one second23\frac{2}{3}≈  0.666667\approx\;0.666667Undefined when the second part is zero.
Second per one first32\frac{3}{2}1.51.5Undefined when the first part is zero.
What Can You Create?

Explore ratios as relationships, scaled amounts and allocations

Reduce two or more exact quantities

Work with integers, finite decimals and integer fractions in one ratio. The simplification method clears denominators before reducing integer factors, retaining zeros in their original positions. Review the smallest whole-number tuple, its total units, and each part's percentage of the combined amount. Two-part inputs also show the separate first-per-second and second-per-first quotients with their own zero restrictions.

Produce a batch or divide a fixed amount

Scale all quantities from any selected part or a desired combined total. Alternatively, divide a fixed amount in the given ratio, choosing exact continuous amounts or indivisible whole items. The latter retains both the ideal proportional amounts and the counts assigned by the stated largest-remainder rule. The result total provides a direct check that every unit in a fixed allocation has been accounted for.

Check a missing value or equivalent relationship

Choose any missing position in a fraction proportion and follow the cross-product equation through to its allowed solution. Compare two complete ratios using exact cross products to distinguish equality from rounded visual similarity. Singular inputs receive clear undefined, impossible or nonunique explanations, keeping an attractive headline number from concealing an invalid denominator or an insufficient scaling anchor.

Formulas and worked examples

Ratio formulas and step-by-step examples

Let nonnegative quantities be q1,…,qnq_1,\ldots,q_n, with at least one positive part, and let S=∑iqiS=\sum_i q_i. For integer quantities, divide every part by their common positive greatest divisor. For fractional sources, first multiply every part by a common denominator. This changes the scale of the tuple while preserving its relative relationship; it does not add that common denominator to the final quantities.

si=qiS,pi=100qiS%,yi=TqiSs_i=\frac{q_i}{S},\qquad p_i=100\frac{q_i}{S}\%,\qquad y_i=T\frac{q_i}{S}

Here sis_i is a part's fraction of the total, pip_i is its percentage, and yiy_i is the exact amount when a fixed total TT is divided proportionally. To scale from a known target tt for a positive source part qjq_j, use k=t/qjk=t/q_j and multiply every part by kk. A target for the total uses k=T/Sk=T/S instead. These formulas apply to quantities in compatible units.

  1. Reduce the default quantities and identify the denominator

    Start with 12:1812:18. The common divisor is gcd⁡(12,18)=6\gcd(12,18)=6, giving 2:32:3 and 55 simplified units. The entered quantities themselves sum to 3030. The first share is 12/30=2/5=40%12/30=2/5=40\% and the second is 18/30=3/5=60%18/30=3/5=60\%. The direct first-per-second quotient is 12/18=2/312/18=2/3, which answers a different question from the first share of the total.

  2. Anchor a scale or divide a total

    For those entered quantities, a target first amount of 3030 gives k=30/12=5/2k=30/12=5/2, so the output is 30:4530:45 and totals 7575. Alternatively, dividing a fixed total of 100100 in the reduced ratio 2:32:3 gives 100(2/5)=40100(2/5)=40 and 100(3/5)=60100(3/5)=60. The scale factor relative to the original entered amounts is 100/30=10/3100/30=10/3; using the reduced units as if they were the original batch would describe a different factor.

  3. Allocate a total that cannot match the ratio exactly

    For 101101 whole items in the ratio 2:32:3, the ideals are 40.440.4 and 60.660.6. Flooring gives 4040 and 6060, leaving one item. The second part has the larger remainder and receives it, producing 4040 and 6161 with total 101101. The achieved counts conserve the total but are not exactly in the original ratio. For three equal parts and two items, equal remainders are resolved in input order, producing 1,1,01,1,0.

  4. Solve a missing proportion and verify its domain

    For 2/3=10/x2/3=10/x, the cross-product equation is 2x=302x=30, so x=15x=15. Substitution gives 2/3=10/152/3=10/15, with both denominators positive. In contrast, 2/3=0/x2/3=0/x would suggest x=0x=0, which is excluded and therefore gives no solution. For 0/3=0/x0/3=0/x, every positive xx works. The tool distinguishes this nonunique case from an invalid known denominator and from a uniquely solved value.

Check order, units and the meaning of the target

The OpenStax ratios and rates section explains ratio order and fractional representations. Its proportions section provides the equation background. The calculations here are independently evaluated examples. The whole-item tie rule, source limits and nonnegative-input convention are explicit choices of this calculator. Convert units before interpreting a total, and check whether the target refers to one part or the complete amount.

Why Users Love This Tool

Keep source quantities, interpretation and exact arithmetic connected

Exact arithmetic with inspectable assumptions

  • Decimal strings and integer fractions are evaluated as rational quantities, avoiding silent decimal truncation.
  • Ratio order is preserved, and reversing it moves a selected scaling anchor consistently.
  • Combined-total shares are distinguished from direct part-to-part quotients.
  • Cross-product solutions are checked against the original positive-denominator restrictions.

Outputs that explain their limits

  • Whole-item allocations conserve the total and state their deterministic tie-breaking convention.
  • All-zero ratios and nonunique zero anchors receive explanations instead of fabricated proportions.
  • Rounded display precision leaves exact fractions and reduced integer tuples unchanged.
  • CSV, plain copying, sharing and print keep active source settings attached to every saved result.
Perfect For

Ratio reasoning for learning, recipes and organized allocation

Students checking proportional reasoning

Distinguish a ratio from a fraction of the whole, inspect denominator clearing, and verify a solved proportion by substitution. Zero examples make denominator conditions and nonunique outcomes concrete. The guide explains the mathematical choices used by this calculator so a worked answer can be reconstructed independently rather than accepted solely because it appears in a result card.

People changing a batch size

Enter compatible ingredient amounts or other quantities that should grow together. Anchor scaling to the item you know, or specify the desired total when the batch size itself is fixed. Convert grams and kilograms, or other unlike units, before adding quantities. The calculator retains exact proportions; the physical accuracy of measured or rounded ingredients still depends on the source measurements.

People assigning indivisible items

Divide a total among several weighted categories and inspect the difference between ideal shares and whole-item counts. The largest-remainder option gives a transparent, reproducible rule with ties resolved by input order. It does not select a fairness policy for a particular organization. Check the applicable allocation rule before treating a chosen mathematical convention as a requirement for your own situation.

How It Works

How it works in three quick steps.

1

Select the relationship you want to investigate

Choose simplification, scaling, division of a total, a missing proportion value or equivalence comparison. The first three workflows support two through ten parts, while comparison uses two parts in each ratio. For a proportion, identify the missing numerator or denominator before entering the three known values. Changing the workflow preserves source values in the editor.

2

Enter exact quantities with compatible units

Enter nonnegative integers, finite decimals, scientific e notation or integer fractions. Convert measurements into consistent units before comparing or adding them. Choose a positive scaling anchor or the total. For whole items, enter an integer target and select the largest-remainder allocation option. A fraction proportion requires positive denominators, with zero allowed for its numerators.

3

Inspect the method and keep the complete record

Follow denominator clearing, greatest-common-divisor reduction, cross products or the common scaling factor. Read exact fractions beside the rounded decimal column. When allocating whole items, inspect both the ideal and assigned amounts. Save the CSV, copy a summary, share editable settings or print the working with the source record attached. Undefined and nonunique outcomes retain explanations rather than false answers.

Download & Print

Save the relationship together with its source and method

Download every exact table row

The CSV contains the active settings, the overall status and the full exact fraction for each quantity. Scaling retains the source-based factor and resulting amounts; whole-item division also keeps the continuous ideals. A solved proportion retains all four values. Undefined or nonunique results retain their explanation. Preserve exact columns as text in spreadsheet software when working with unusually large integers.

Print the working or save a PDF

Open print preview after checking the inputs and chosen workflow. The printable record removes the site navigation and controls while keeping the headline outcome, mathematical steps, active source record and complete native table. Landscape orientation gives the table more room. Long exact expressions use a clear compact notice on paper, and the CSV remains the complete digit-preserving record for those cases.

Share an editable ratio example

Share calculation copies a URL fragment containing only active validated fields. This keeps source precision and the selected workflow intact when the link is opened. Copy summary provides a plain-text alternative. Section links move keyboard focus without overwriting saved settings. Reset restores the initial two-part example and clears the fragment. A comparison deliberately shares only its two active parts, while the current editor can retain additional parts for other workflows.

FAQ

Frequently Asked Questions

What can I calculate with this ratio tool?
The five workflows simplify a ratio, scale it to a known part or total, divide an amount among ratio parts, solve a missing fraction-proportion value, and compare two ratios for equivalence. Simplification, scaling and total division support two through ten nonnegative parts. Inputs may be finite decimals, scientific notation or integer fractions. Every workflow includes an exact method and a complete result table so you can inspect the assumptions behind the headline answer.
Can I simplify decimal and fractional ratios?
Yes. Enter each quantity directly, using a slash for an integer fraction when needed. The tool converts every source to an exact rational value, clears the denominators using their least common multiple, then removes the shared integer divisor. For example, 0.5:0.75=2:30.5:0.75=2:3 and 1/2:3/4:5/6=6:9:101/2:3/4:5/6=6:9:10. Finite decimal input means exactly those digits; an approximation to a recurring value should first be converted deliberately with the Fraction Calculator if you need the recurring value itself.
How is a ratio share different from dividing the first part by the second?
A part-to-part quotient compares two individual quantities, while a share of the combined total includes every part in its denominator. With 2:32:3, the first-per-second quotient is 2/32/3, but the first share of the total is 2/(2+3)=2/5=40%2/(2+3)=2/5=40\%. The default table labels these separately. Multi-part shares include all entered parts, so a third quantity changes the shares even when the first two quantities and their direct quotient remain unchanged.
Can I scale from any part or from a desired total?
Yes. In scaling mode, choose a particular part as the anchor or select the combined total. The target and the source anchor define one common multiplier, which is applied to every entered quantity. The factor is measured against the original source values rather than against the simplified integer ratio. This distinction matters when the entered quantities are already a batch size. Reversing the ratio order also moves the selected anchor to keep its identity consistent.
How does dividing a total differ from scaling one part?
When dividing a total, the amount represents the sum of all output parts. Each part receives its exact share of that total. Splitting 100100 in the ratio 2:32:3 therefore gives 4040 and 6060. Scaling the first part of the same ratio to 100100 instead gives 100100 and 150150, totaling 250250. The tool separates these workflows and labels their targets explicitly so a part amount is not accidentally treated as the whole amount.
What happens when the parts must be whole items?
Choose whole-item allocation and enter a nonnegative integer total. The calculator first obtains each exact ideal amount, floors those amounts, then distributes remaining items to the largest fractional remainders. Exact ties are resolved by the original entered-part order. The assigned counts always preserve the total, including when the total is smaller than the number of parts. They may not preserve the original ratio exactly. This is a stated allocation convention; changing the part order can change tied outcomes.
Can the ratio contain zero or negative quantities?
A zero part is supported when at least one other part is positive; for example, 0:50:5 reduces to 0:10:1. An all-zero tuple has no defined relative relationship or shares. This tool models nonnegative quantities and rejects negative values rather than turning them into positive inputs. A zero scaling anchor cannot produce a positive target. If both that anchor and its target are zero, the scale factor is not uniquely determined, so the other output amounts are not invented.
Can I solve for any of the four proportion positions?
Yes. Select the unknown in a/b=c/da/b=c/d and enter the other three values. This fraction interpretation requires b,d>0b,d>0, while either numerator may be zero. The exact cross-product equation is solved and checked against the original denominator conditions. A suggested zero denominator is rejected as no solution. When the coefficient and the other side are both zero, every positive unknown denominator works, producing infinitely many solutions instead of a single arbitrary answer. Hidden unknown-source text is ignored.
How do you decide whether two ratios are equivalent?
Comparison checks exact cross products for two nonnegative pairs, each containing at least one positive quantity. It retains source order and avoids converting close values to rounded decimals before checking equality. A pair with one zero part is valid for this equivalence test even when its quotient would be undefined; an all-zero pair is excluded. Comparison uses the first two ratio parts, with additional multi-part editor values retained for returning to the other workflows. Swap compared ratios changes their presentation without changing equivalence.
Can I print, download or share the calculation without losing precision?
The complete CSV records active source settings, the result status, exact reduced fractions and every displayed row. Copy summary provides a plain-text version suitable for notes, while sharing saves active validated settings in an editable URL fragment. Print removes navigation and editing controls, keeps the mathematical working and source record, and can be saved as a PDF through the browser. Very long exact expressions use a compact print notice; the CSV keeps their full digits. Decimal display precision never changes exact values.
About This Tool

About this ratio, proportion and allocation calculator

Toolarithm's Ratio Calculator is built around the distinction between a relationship and a quantity. A reduced integer tuple describes relative parts, while a scaled batch or an allocated total describes actual amounts. Confusing these roles can produce a result that is arithmetically consistent but answers the wrong question. The separate workflows make the intended target explicit and attach the original quantities to the resulting method. The combined-total share and the direct quotient are likewise labeled separately so that their different denominators remain visible.

The arithmetic engine reads decimal and integer-fraction source strings as exact rational values. Denominator clearing and greatest-common-divisor reduction produce a whole-number relationship without discarding fractional input. Scaling uses one source-based factor for all parts, while proportion solving checks the original denominator restrictions after forming its linear equation. Equivalence comparison uses exact cross products rather than displayed decimal approximations. These choices preserve meaningful distinctions between close or very large inputs, within the published source and result bounds.

Discrete allocation introduces a different kind of decision. Indivisible items may make the original ratio impossible to reproduce exactly, so the tool retains ideal shares and applies a stated largest-remainder convention with deterministic ties. That output is an inspectable allocation, not a universal definition of fairness. Across workflows, accessible LaTeX and MathML carry the symbolic working, including in the server-rendered default page. Source records, exact exports and explicit singular outcomes help saved answers remain understandable after the interactive session has ended.

Editorial Transparency

Who maintains this page

Ownership and review

Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.

Methodology

Equations are checked by substituting worked examples into the stated relationship and comparing the result with the interactive implementation.

Read the editorial methodology

Dates and sources

Review dates change only after a substantive method or content check.

Keep building

Explore more calculators

Calculators hub