Equivalent Ratios Calculator & Whole-Batch Planner
Enter two, three or four positive ratio parts. Give each component its lot size, minimum and optional stock cap. See the smallest compatible batch, which limits bind, and how much stock each accepted plan uses.
Scale a ratio in whole lots
Find every exact batch size that fits your part requirements and stock, and compare the totals nearest your goal.
Ratio parts and limits
Use the same unit for all counts. A lot size of 1 allows any whole quantity. Blank stock means no entered cap.
Several exact batch counts meet the entered limits.
Equivalent ratio and feasible batches
- Smallest whole-number ratio
- 2 : 3 : 1
- Ratio multiplier per batch
- 6
- Units in one lot-compatible batch
- 36
- Batches needed for minimums
- 2
- Stock cap in batches
- 4
- Closest total at or below goal
- 72
- Closest total at or above goal
- 108
One lot-compatible batch contains 12 : 18 : 6 units in part order.
Compare accepted plans
72 total units
Part A
- Units used
- 24
- Whole lots
- 6
- Stock left
- 36
Part B
- Units used
- 36
- Whole lots
- 4
- Stock left
- 38
Part C
- Units used
- 12
- Whole lots
- 12
- Stock left
- 18
Limits by part
- Part A
- Multiplier must be a multiple of 2. Minimum needs 2 batches. Stock allows 5 batches.
- Part B
- Multiplier must be a multiple of 3. Minimum needs 0 batches. Stock allows 4 batches.
- Part C
- Multiplier must be a multiple of 1. Minimum needs 0 batches. Stock allows 5 batches.
Export the ratio worksheet
The CSV includes exact ratios, each part’s limits and the displayed batch options.
View CSV text
How to use this calculator
- Choose two to four parts and enter a positive ratio value for each.
- Enter the lot multiple and any minimum or stock limit for each part. Use lot size 1 for ordinary whole units.
- Read the smallest exact batch and the feasible batch-count interval. Add a total goal to compare feasible quantities on either side.
- Preview a batch count to inspect unit use, lots and remaining stock, or download the exact worksheet.
The Formula
The mathematical logic powering this calculation is:
Clear the denominators of the positive ratio parts and divide the resulting integers by their common greatest divisor. The primitive integer vector p then has greatest common divisor 1. Any whole-number realization of the exact ratio is m·p with positive integer m.
For each part i, the units m·pᵢ must be divisible by that part’s lot size gᵢ. This holds exactly when m is divisible by gᵢ/gcd(gᵢ,pᵢ). Let M be the least common multiple of these per-part requirements. One lot-compatible batch has bᵢ = M·pᵢ units of each part. Every allowed whole-lot quantity is k·bᵢ for a positive integer count k.
The smallest permissible k is the largest of 1 and each rounded-up minimum/bᵢ. A stock limit for part i gives a cap of floor(stockᵢ/bᵢ). The smallest specified cap is the final upper bound. If the upper bound is below the lower bound, no exact plan fits. The total per batch B is the sum of bᵢ, so attainable totals are B·k. Round a total goal down and up to the adjacent multiples of B, then respect the minimum and stock bounds. Only feasible totals at or below and at or above the goal are reported.
Enter two through four parts and use one consistent count unit. Ratio parts are decimal values above zero through 999,999 with up to six decimals. Minimums, stock, lots and total goals are whole counts through one billion. Blank minimum means zero. Blank stock supplies no upper bound. Lot size 1 permits any whole quantity. All resulting integers and boundary decisions are exact. Graphic shares are drawn to numerical scale and exact values remain visible.Worked Example
If you input:
- Ratio parts: 2.5 : 3.75 : 1.25
- Lot sizes: 4 : 9 : 1
- Total goal: 100
Result:
The primitive ratio is 2:3:1. The lot-compatible batch is 12:18:6. The supplied limits allow two through four batches. The nearest feasible totals around 100 are 72 and 108.
Frequently Asked Questions
Why can an equivalent ratio fail a lot-size check?
A scaled amount can preserve the proportion but fall between allowable lot multiples. The planner finds a multiplier that satisfies every component simultaneously.
What if I need a total that is between feasible plans?
Use the nearest attainable values below and above the goal. An exact whole-lot ratio may skip the requested amount.
Why is a result missing on one side of the goal?
The minimum or stock caps can place every feasible total on one side. The worksheet still displays the feasible side and each binding limit.
Can I use different physical units for the parts?
Use a consistent count unit if you want to add the parts into a total. Convert measurements to a common unit before entering them.
Similar Calculators
Ratio Calculator
Simplify ratios, find equivalent ratios, and solve for a missing value in a proportion.
Direct Variation Calculator & Through-Origin Fit
Find y = kx from paired values and check exact direct variation. Compare a through-origin line with a free intercept on held-out rows.
Linear Congruence Calculator & Solution Timeline
Solve one or more linear congruences ax ≡ b (mod m). Find the common residue and period, or see why the congruences conflict.
