School Lunch Nutrition Calculator Formula

Understand the math behind the school lunch nutrition calculator. Each variable explained with a worked example.

Formulas Used

Total Lunch Calories

total_cal = sandwich_cal + fruit_servings * 60 + veggie_servings * 25 + dairy_cal + snack_cal

Fruit (target: 1+ serving)

fruit_check = fruit_servings

Veggies (target: 0.75+ serving)

veggie_check = veggie_servings

Estimated Protein

est_protein = round(sandwich_cal * 0.07 + dairy_cal * 0.08 + snack_cal * 0.02)

Variables

VariableDescriptionDefault
sandwich_calSandwich / Main Item(cal)350
fruit_servingsFruit Servings1
veggie_servingsVegetable Servings0.5
dairy_calDairy (milk, yogurt, cheese)(cal)100
snack_calSnack / Treat(cal)100

How It Works

How to Estimate School Lunch Nutrition

USDA Guidelines for School Meals (K-5)

  • Calories: 550-650 per lunch
  • Grain: 1-2 servings
  • Protein: 1-2 oz equivalent
  • Fruit: 0.5-1 cup
  • Vegetables: 0.75 cup
  • Dairy: 1 cup
  • For Packed Lunches

    These guidelines provide a helpful target for home-packed lunches. A balanced lunch includes a protein-rich main item, a grain, at least one fruit serving, a vegetable, and a dairy item.

    Calorie Estimates

  • 1 fruit serving: approximately 60 cal
  • 1 vegetable serving: approximately 25 cal (raw)
  • Dairy varies: 80 cal (skim milk) to 150 cal (whole milk)
  • Worked Example

    PB&J sandwich (350 cal), 1 apple, half cup carrot sticks, yogurt (100 cal), granola bar (100 cal).

    sandwich_cal = 350fruit_servings = 1veggie_servings = 0.5dairy_cal = 100snack_cal = 100
    1. 01Sandwich = 350 cal
    2. 02Fruit = 1 x 60 = 60 cal
    3. 03Veggies = 0.5 x 25 = 12.5 cal
    4. 04Dairy = 100 cal
    5. 05Snack = 100 cal
    6. 06Total = 350 + 60 + 12.5 + 100 + 100 = 622.5 cal