The food swap calculator finds how much of Food B matches the protein in your portion of Food A. Choose the exact preparation and enter an edible weight or a listed household portion. You get an equal-protein mass, a fiber comparison, and optional calorie and cost comparisons. Equal protein does not make the foods interchangeable in every other way.

Find an equal-protein food swap

Your entries stay in this browser. The calculation uses bundled food data, needs no account and does not save your entries.

JavaScript is needed for the interactive tool. The worked example and formula below also let you calculate a swap by hand.

Choose your foods and amount to see an equal-protein swap.
Chicken and tofu on two plates beside a kitchen scale, lentils and eggs, with Yolko the egg mascot for a food swap calculator
Two plates and a kitchen scale: swapping one protein food for another by matching portions.

How do you choose the right portion?

The food selectors describe the food’s preparation, rather than treating all forms of an ingredient as identical. USDA FoodData Central’s SR Legacy dataset, released in April 2018, is the source for the bundled composition and household weights. The high-protein foods chart helps interpret ordinary serving sizes before choosing a swap.

Weigh the edible part in the state named in the selector. For chicken, use roasted breast meat without skin or bone. For lentils, use boiled lentils without salt, not dry lentils. For tofu, the entry is raw firm tofu prepared with calcium sulfate; fried tofu or a different firmness is a different food. The yogurt entry is plain nonfat Greek yogurt. For egg, weigh the raw whole contents without the shell. Cooking directions and food safety decisions are outside this calculator’s scope.

Household portions are guides, not a promise that every cup or container weighs the same. When you change Food A, the amount clears and the unit returns to grams so a cup of the old food cannot silently become a cup of the new food. Food B’s first listed household portion appears as an approximate guide alongside its solved mass. Use the gram result with a kitchen scale when practical.

What arithmetic holds protein constant?

This food exchange calculator uses inverse scaling of USDA composition; it does not create a clinical food exchange list. Each food’s protein is stored per 100 g of edible food. First, target protein = Food A grams × Food A protein per 100 g ÷ 100. Then Food B grams = 100 × target protein ÷ Food B protein per 100 g. A household entry is converted to edible grams using its USDA gram weight before those steps.

For each food, energy and fiber are its per-100-gram value multiplied by its edible grams and divided by 100. The calculator compares B with A using the unrounded amounts. Cost uses the same scaling: price per 100 g × portion grams ÷ 100. Enter prices for edible food in the stated preparation, rather than comparing a raw package price directly with a cooked portion price. A single price does not establish a cost difference.

The browser rounds only the display: edible masses and fiber to one decimal place, protein to whole grams at or above 10 g and one decimal below, energy to whole kcal, and costs and household multiples to two decimals. Very small positive amounts are shown as less than the smallest display increment. The underlying arithmetic keeps full precision, so multiplying the rounded answer back may give a slightly different protein total.

Worked example: chicken breast to firm tofu

Using USDA SR Legacy values, 100 g of roasted chicken breast has 31.02 g protein and 165 kcal. The raw firm calcium-sulfate tofu entry has 17.27 g protein per 100 g. The equal-protein calculation is 100 × 31.02 ÷ 17.27 = about 179.6 g of tofu. The result displays about 31 g protein for both portions.

That tofu portion has about 259 kcal and 4.1 g fiber, compared with 165 kcal and 0 g fiber in the chicken portion. B is about 79.6 g heavier and provides about 94 kcal more. These are composition comparisons, not instructions to choose the food with fewer calories. The guide to protein in tofu, tempeh and edamame explains why the exact tofu entry matters.

For a hypothetical price example, enter 2 currency units for chicken and 1 for tofu, both per 100 g of the stated edible preparation. The chicken portion costs 2.00; the unrounded equal-protein tofu portion costs about 1.80, or about 0.20 less. These prices are invented inputs to demonstrate arithmetic, not store prices.

What happens with invalid or missing inputs?

A negative amount such as −10 g is invalid: the calculator asks for a nonnegative edible amount and removes the previous answer. An empty amount is missing, not zero. An amount of 0 g is valid and produces a zero-sized match. Prices follow the same distinction: zero is allowed, while an empty price stays unknown. Decimal points or decimal commas are accepted; a comma always means a decimal mark, never a thousands separator. Text, currency signs, scientific notation and nonfinite values are rejected. Positive values too small for browser arithmetic are rejected rather than treated as zero.

The upper amount and price limits are interface limits chosen for manageable entries, not nutrition thresholds. Food B must have a known protein value above zero because its protein value is the divisor. Unknown energy or fiber is displayed as unknown and never replaced with zero; a reported zero remains zero. If either value is missing, its difference is also unknown. All bundled entries have reported values for these fields, but the calculation still guards against missing data.

What does an equal-protein swap leave out?

Equal protein does not establish equivalent amino acids, micronutrients, digestibility, tolerability or medical suitability. The tool does not score foods or decide that a plant or animal option is better. You can use the plant protein basics guide for broader interpretation, and keep the rest of the meal in view when choosing a portion. A larger solved portion may simply be inconvenient for the meal you are making.

These are generic USDA reference foods, not a laboratory analysis of your meal. Product labels, water changes during preparation, added sauces, drained weight and estimated portions can make your food differ from the reference. Use a matching label or database entry for actual food logging; do not assume the precision of the arithmetic makes a portion estimate precise. This tool does not set a daily protein target or calculate a medically managed exchange plan.

If you have kidney disease, are pregnant or follow a medical diet, ask your care team before using a swap to change a prescribed meal plan. If you have a history of disordered eating, skip calorie counting and talk to a clinician. Calories are optional here. The guides to whether counting calories is healthy and tracking protein without counting calories offer context and another way to track.

For a practical next step, weigh the replacement portion, select a matching preparation in your food log, and record the amount you actually eat. Save the food entry if you repeat it. Keep the preparation note with the saved portion so your next comparison starts from the right reference.

Sources

  1. USDA FoodData Central. SR Legacy, April 2018 release: roasted chicken breast, meat only (FDC 171477); boiled lentils without salt (FDC 172421); raw firm tofu prepared with calcium sulfate (FDC 172475); plain nonfat Greek yogurt (FDC 170894); whole raw fresh egg (FDC 171287). Protein nutrient 1003, energy nutrient 1008, fiber nutrient 1079, and household portions. USDA datasets: SR Legacy April 2018 CSV archive.
  2. USDA FoodData Central. Data documentation. Accessed November 20, 2026. Composition units, edible portions and food-data context. USDA data documentation.

This article is general information, not medical advice. If you have a health condition, are pregnant, or follow a diet set by your doctor, talk to them or a registered dietitian before changing how you eat.