WellByNumbers.

Yam (raw) vs Sweet potato (baked)

Both count toward 30 plants a week.

Yam (raw)Sweet potato (baked)
Protein · per 100 g1.5 g2.0 g
Carbs · per 100 g27.9 g20.7 g
Fat · per 100 g0.2 g0.1 g
Fiber · per 100 g4.1 g3.3 g
Energy · per 100 g118.0 kcal90.0 kcal
Protein · per 100 kcal1.3 g2.2 g
To hit 30 g protein1961 g · 2314 kcal1493 g · 1343 kcal

The same three numbers, drawn

Protein / 100 g1.52.0Fiber / 100 g4.13.3Protein / 100 kcal1.32.2YamSweet potato

What 30 g of protein looks like on a plate

1961 gYam2314 kcal rides along1493 gSweet potato1343 kcal rides alongsquare area drawn to scale · grams needed for 30 g protein

Where the calories come from

5%carbs 94%1%
protein 9%carbs 90%1%

The one-line verdict: Sweet potato (baked) delivers 1.7× the protein per calorie of Yam (raw) (2.2 g vs 1.3 g per 100 kcal).

More protein / 100 g: Sweet potatoMore fiber / 100 g: YamLighter per 100 g: Sweet potatoSmaller 30 g portion: Sweet potato

Swap in your own pair

Bold marks the better side of each row. "Per 100 kcal" answers the density question — which food delivers more protein for the energy it costs. Portion row is computed live from the same USDA base values shown on each food page.