Calculator: Cooking yield and portions
Enter the labelled inputs to calculate: Yield (%); Count; Mass Mrest (g).
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
Y%=100M₁/M₀; N=⌊M₁/P⌋; Mrest=M₁−NP
All ratios are mass-based. Use the same mass unit throughout. These are recipe and process estimates, not food-safety instructions.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
Y%=100M₁/M₀; N=⌊M₁/P⌋; Mrest=M₁−NP
What assumptions apply?
All ratios are mass-based. Use the same mass unit throughout. These are recipe and process estimates, not food-safety instructions.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Mass M₀ (g) = 1000
Mass M₁ (g) = 750
Portion mass (g) = 150
|
Yield (%): 75
Count: 5
Mass Mrest (g): 0
|
| 2 |
Mass M₀ (g) = 1500
Mass M₁ (g) = 1100
Portion mass (g) = 200
|
Yield (%): 73.33333333
Count: 5
Mass Mrest (g): 100
|
| 3 |
Mass M₀ (g) = 2000
Mass M₁ (g) = 1340
Portion mass (g) = 125
|
Yield (%): 67
Count: 10
Mass Mrest (g): 90
|