
Recipe portions
Scale an ingredient quantity to a new number of servings.
Your inputs stay in your browser.
Method and assumptions
Method version 1.0.0 · Updated
Scale an ingredient
Formula: New quantity = quantity × desired servings / original servings
One ingredient at a time, using the same unit before and after (g, mL, spoons…). Serving counts are positive integers. Example: 250 g for 4 servings → 375 g for 6. No rounding to whole ingredients or adjustment of cooking time. Repeat for each ingredient.
- quantity
- Original ingredient quantity
- original
- Original servings
- desired
- Desired servings
Non-negative quantity with at most 12 integer digits and 6 decimal places; 1 to 1,000,000 servings. Direct proportion, approximate result displayed with at most 12 significant digits.
Calculate with code
These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.
JavaScript
const originalAmount = 250, originalServings = 4, desiredServings = 6;
console.log(originalAmount * desiredServings / originalServings); // 375TypeScript
const originalAmount = 250, originalServings = 4, desiredServings = 6;
console.log(originalAmount * desiredServings / originalServings); // 375Python
amount, original, desired = 250, 4, 6
print(amount * desired / original) # 375.0Java
double amount = 250, originalServings = 4, desiredServings = 6;
System.out.println(amount * desiredServings / originalServings); // 375.0C#
decimal amount = 250, originalServings = 4, desiredServings = 6;
Console.WriteLine(amount * desiredServings / originalServings); // 375