Ratio Calculator
Simplify ratios, scale quantities and divide a total with exact steps.
Workflows
Simplify, scale, divide and compare
Parts
Two through ten quantities
Methods
Exact fractions and worked 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
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
Clear the exact rational denominators
Multiply every source value by the same least common denominator. Fractions and decimal strings become integers without rounding.
Reduce the common integer factors
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.
| Quantity | Exact value | Rounded decimal | Interpretation |
|---|---|---|---|
| Entered part 1 | Exact value retained; display precision applies only to the decimal column. | ||
| Entered part 2 | Exact value retained; display precision applies only to the decimal column. | ||
| Sum of entered quantities | Exact value retained; display precision applies only to the decimal column. | ||
| Reduced part 1 | Exact value retained; display precision applies only to the decimal column. | ||
| Reduced part 2 | Exact value retained; display precision applies only to the decimal column. | ||
| Total simplified units | Exact value retained; display precision applies only to the decimal column. | ||
| Part 1 share of total | The denominator is the sum of all entered quantities. | ||
| Part 2 share of total | The denominator is the sum of all entered quantities. | ||
| First per one second | Undefined when the second part is zero. | ||
| Second per one first | Undefined when the first part is zero. |
Workflows
Simplify, scale, divide and compare
Parts
Two through ten quantities
Methods
Exact fractions and worked steps
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.
Ratio formulas and step-by-step examples
Let nonnegative quantities be , with at least one positive part, and let . 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.
Here is a part's fraction of the total, is its percentage, and is the exact amount when a fixed total is divided proportionally. To scale from a known target for a positive source part , use and multiply every part by . A target for the total uses instead. These formulas apply to quantities in compatible units.
Reduce the default quantities and identify the denominator
Start with . The common divisor is , giving and simplified units. The entered quantities themselves sum to . The first share is and the second is . The direct first-per-second quotient is , which answers a different question from the first share of the total.
Anchor a scale or divide a total
For those entered quantities, a target first amount of gives , so the output is and totals . Alternatively, dividing a fixed total of in the reduced ratio gives and . The scale factor relative to the original entered amounts is ; using the reduced units as if they were the original batch would describe a different factor.
Allocate a total that cannot match the ratio exactly
For whole items in the ratio , the ideals are and . Flooring gives and , leaving one item. The second part has the larger remainder and receives it, producing and with total . 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 .
Solve a missing proportion and verify its domain
For , the cross-product equation is , so . Substitution gives , with both denominators positive. In contrast, would suggest , which is excluded and therefore gives no solution. For , every positive 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.
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.
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 in three quick steps.
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.
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.
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.
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.
Frequently Asked Questions
What can I calculate with this ratio tool?
Can I simplify decimal and fractional ratios?
How is a ratio share different from dividing the first part by the second?
Can I scale from any part or from a desired total?
How does dividing a total differ from scaling one part?
What happens when the parts must be whole items?
Can the ratio contain zero or negative quantities?
Can I solve for any of the four proportion positions?
How do you decide whether two ratios are equivalent?
Can I print, download or share the calculation without losing precision?
Related calculators
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.
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 methodologyDates and sources
Review dates change only after a substantive method or content check.
Keep building