About

How the Homestead Lab model works

The Lab is a teaching model. It steps forward one hour at a time, tracks a few budgets (electricity, water, heat, food, money), and settles water and food once a day. It is built to show trade-offs honestly, not to design a real system.

This page is generated from the model's own parameter object, so it always matches the code. Of 91 parameters, 63 are marked as teaching simplifications: rounded or assumed values that a reviewer should check before relying on them.

Each hour

  1. Weather. Each day is drawn from the zone's monthly normals with a fixed random seed: temperature with a day-to-day drift, overcast or clear, and rain or snow on some overcast days. Hours follow a daily temperature curve and the sun's real position.
  2. Solar. Sunlight is split into direct and diffuse and projected onto the tilted panels. Output = sunlight × panel rating × system derate × heat penalty, and much less after snow on low tilts.
  3. Loads. Appliances follow daily profiles. Water pumping, hot water, heating and cooling add electricity when they are electric.
  4. Heat. In four 15-minute steps: heat lost through walls, roof, floor, windows and air leaks, minus sun through windows and heat from people and appliances. The heater makes up the difference up to its size. A wood stove only burns when someone is home and awake, then banks overnight.
  5. Battery and backup. Solar serves loads first, then charges the battery. When the battery reaches its reserve, the grid (if connected) or the generator (if fitted) takes over. Anything left unmet is an hour without power.

Each day

  • Water: rain (minus first flush) fills the tank until it overflows; household, animal and garden use draw it down. Unprotected tanks freeze in cold spells. A dry tank means hauled water and a thirsty garden.
  • Food: beds grow when the month is warm enough (season extension stretches that). Yield falls with heat and with missed watering. Surplus is preserved into the pantry, which loses a little each month. Hens lay with day length.

Scenarios are tested both ways

Each scenario has an automated test where the starting setup must fail and a sensible set of changes must win. If a model change breaks that, the build fails.

  • A cloudy week in December: Keep the lights and fridge on for 7 overcast days without the batteries running flat.
  • Drought summer: Get from June 1 through August without the rain tank running dry.
  • First winter in a drafty cabin: Keep indoors at 59 °F (15 °C) or warmer for at least 95% of hours, December through February, on 2,500 kg (about 1.5 cords) of wood.
  • Add a second person: Run a full year for two people with fewer than 24 hours without power and no days with a dry tank.
  • Plant to plate: Grow at least 25% of the vegetables two people eat over a year.
  • Grid-tied to off-grid: Drop the grid near Chicago (zone 5A) and run fewer than 5 generator hours in every month of the year.

Every parameter

solar

ParameterValueUnitSourceStatus
panelWatts
Typical residential module size.
400 W per panel (STC) US Department of Energy, Solar Energy Technologies Office Sourced
panelArea 1.9 m² per panel US Department of Energy, Solar Energy Technologies Office Sourced
systemDerate
PVWatts default losses are about 14%.
0.86 fraction National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Sourced
tempCoeff -0.004 per °C above 25 °C cell temperature National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Sourced
cellTempRise 25 °C above air at 1,000 W/m² National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
snowLossDays 1 days of near-zero output after snowfall on low tilts National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
diffuseClear 0.25 diffuse fraction, clear day National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
diffuseCloudy 0.9 diffuse fraction, overcast day National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
cloudyDayFactor 0.3 fraction of average insolation on an overcast day National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification

battery

ParameterValueUnitSourceStatus
lfp.minSoc 0.1 fraction kept in reserve National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
lfp.roundTrip 0.92 round-trip efficiency National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Sourced
lfp.noChargeBelow 0 °C: charging blocked without a heater National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Sourced
lead.minSoc 0.5 fraction kept in reserve to protect life US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
lead.roundTrip 0.8 round-trip efficiency US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Sourced
lead.coldCapacityPerC 0.01 capacity lost per °C below 20 °C US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification

inverter

generator

ParameterValueUnitSourceStatus
fuelLPerKWh 0.4 L gasoline per kWh delivered US Consumer Product Safety Commission Simplification
startSoc 0.2 start when usable charge falls below US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
stopSoc 0.5 stop when usable charge reaches (bulk charge only; solar finishes the job) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification

prices

ParameterValueUnitSourceStatus
gridKWh 0.12 / 0.17 / 0.3 $/kWh low, typical, high US Energy Information Administration Sourced
exportKWh 0.05 $/kWh credit for exported solar (varies widely) US Energy Information Administration Simplification
gasolineL 0.8 / 1 / 1.3 $/L US Energy Information Administration Sourced
propaneKWh 0.07 / 0.1 / 0.14 $/kWh of fuel energy US Energy Information Administration Sourced
woodKg 0.12 / 0.2 / 0.3 $/kg seasoned firewood if bought US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
haulWaterL 0.02 / 0.05 / 0.1 $/L trucked water Texas A&M AgriLife Extension Simplification
cityWaterL 0.003 / 0.006 / 0.012 $/L including sewer US Environmental Protection Agency Simplification
feedKg 0.45 / 0.6 / 0.9 $/kg layer feed University of Minnesota Extension Simplification

heat

ParameterValueUnitSourceStatus
U
Rounded from typical R-values: poor ≈ R-6 walls, code ≈ R-17 effective, high ≈ R-28, super ≈ R-47.
poor: wall: 1; roof: 0.6; floor: 0.8; window: 2.8; code: wall: 0.33; roof: 0.18; floor: 0.28; window: 1.8; high: wall: 0.2; roof: 0.12; floor: 0.18; window: 1.4; super: wall: 0.12; roof: 0.08; floor: 0.12; window: 0.9 W/m²K US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
ach leaky: 1; average: 0.5; tight: 0.15 natural air changes per hour US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
ventilationAch 0.3 ACH of mechanical fresh air in a tight house US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Sourced
heatRecovery 0.7 fraction of heat recovered by an HRV/ERV US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Sourced
airHeatCap 0.33 Wh per m³ per K US DOE and Pacific Northwest National Laboratory Sourced
mass
Rough classes after ISO 13790.
light: 80; medium: 165; heavy: 260 kJ/K per m² floor US DOE and Pacific Northwest National Laboratory Simplification
shgc 0.5 solar heat gain coefficient US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Sourced
personW 80 W of body heat per person at home US DOE and Pacific Northwest National Laboratory Sourced
applianceHeatFraction 0.8 share of electric use that ends up as indoor heat US DOE and Pacific Northwest National Laboratory Simplification
wallHeight 2.5 m US DOE and Pacific Northwest National Laboratory Simplification
aspect 1.5 length to width ratio US DOE and Pacific Northwest National Laboratory Simplification
heaterKW heatpump: 6; wood: 8; propane: 10; resistance: 5; none: 0 kW heat output US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
woodKWhPerKg 4.2 kWh per kg seasoned wood (about 20% moisture) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Sourced
woodStoveEff 0.7 fraction US Environmental Protection Agency Sourced
propaneEff 0.92 fraction US Department of Energy (archived copy; the page was removed from energy.gov in mid-2026) Sourced
heatPumpCop a: 2.8; b: 0.07; min: 1.5; max: 4.5; cutoff: -25 COP = a + b×T(°C) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
coolingSetpoint 26 °C US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Sourced
coolingCop 3.2 COP US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
nightFlushAch 3 ACH with windows open at night US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
ventOpenAboveC 23 °C indoors above which people open windows if it is cooler outside US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
blindsAboveC 24 °C indoors above which people close blinds on sunny glass US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
blindsFactor 0.5 share of window solar gain let through by closed blinds US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification

water

ParameterValueUnitSourceStatus
perPersonL frugal: 95; typical: 200; heavy: 300 L per person per day, indoor US Environmental Protection Agency Simplification
hotFraction 0.3 share of indoor water that is hot US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
greywaterFraction 0.5 share of indoor water that is reusable greywater Water Research Foundation Simplification
runoff 0.85 runoff coefficient (metal or shingle roof) Texas Water Development Board Sourced
firstFlushLPerM2 0.4 L diverted per m² of roof per rain event Texas Water Development Board Sourced
pumpKWhPerM3 rain: 0.4; well: 0.8; municipal: 0 kWh per 1,000 L pumped US Environmental Protection Agency Simplification
hensLPerDay 0.5 L per hen per day University of Minnesota Extension Sourced
freezeBelow -2 °C daily mean: unprotected tank freezes Texas A&M AgriLife Extension Simplification
tankReserve 0.05 bottom fraction not drawn Texas A&M AgriLife Extension Simplification

hotWater

food

ParameterValueUnitSourceStatus
vegNeedKg
About 2.5 cup-equivalents a day.
0.35 kg vegetables per person per day USDA and US Department of Health and Human Services Simplification
yieldKgM2Month greens: 0.45; mixed: 0.55; staples: 0.6 kg per m² per growing month University of Minnesota Extension Simplification
kcalPerKg greens: 200; mixed: 350; staples: 900 kcal per kg USDA Agricultural Research Service Simplification
growMinTemp 8 °C monthly mean to grow University of Minnesota Extension Simplification
extensionBonus 5 °C effective gain from row covers or a cold frame University of Minnesota Extension Simplification
heatStressTemp 30 °C mean above which yields fall University of Minnesota Extension Simplification
harvestLagDays 40 days from season start to first harvest University of Minnesota Extension Simplification
storageLossMonth 0.05 fraction of pantry lost per month University of Georgia, with USDA support Simplification
eggsPerHenDay 0.75 eggs per hen per day at full light University of Minnesota Extension Sourced
feedKgHenDay 0.15 kg feed per hen per day (about 0.25 to 0.45 lb) University of Minnesota Extension Sourced
kcalPerEgg 72 kcal USDA Agricultural Research Service Sourced
irrigationMmPerC 0.2 mm/day of water need per °C above 5 °C University of Minnesota Extension Simplification

costs

ParameterValueUnitSourceStatus
pvPerW 1.5 / 3.5 $/W installed (DIY low end) US Department of Energy, Solar Energy Technologies Office Simplification
batteryPerKWh lfp: 450 / 1000; lead: 250 / 550 $/kWh installed National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
inverterPerKW 300 / 800 $/kW US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
generator 900 / 3500 $ with transfer equipment US Consumer Product Safety Commission Simplification
tankPerL 0.15 / 0.5 $/L of storage, installed Texas A&M AgriLife Extension Simplification
firstFlush 50 / 300 $ Texas A&M AgriLife Extension Simplification
greywater 300 / 3000 $ simple laundry-to-landscape up to a permitted system US Environmental Protection Agency Simplification
insulationPerM2 poor: 0 / 0; code: 40 / 90; high: 90 / 170; super: 160 / 300 $/m² floor, upgrade from poor US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
airSealing leaky: 0 / 0; average: 500 / 1500; tight: 2000 / 6000 $ US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
heater none: 0 / 0; resistance: 300 / 1500; heatpump: 4000 / 14000; wood: 2500 / 7000; propane: 3000 / 8000 $ installed US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
waterHeater resistance: 800 / 2000; heatpump: 2000 / 5000; propane: 1200 / 3000; solar: 4000 / 10000 $ installed US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
bedsPerM2 15 / 60 $/m² raised or amended beds University of Minnesota Extension Simplification
seasonExtension 100 / 1500 $ row covers to a small hoop house University of Minnesota Extension Simplification
coop 300 / 2000 $ coop and run for a small flock University of Minnesota Extension Simplification
perHen 10 / 40 $ per bird University of Minnesota Extension Simplification

Appliances

AppliancekWh per dayPeak WWhen
Fridge (older, standard)1.6600flat
Fridge (efficient)0.9400flat
Chest freezer0.8300flat
LED lighting0.4120evening
Incandescent lighting2.2600evening
Router, phones, small electronics0.560flat
Laptop and monitor (work from home)0.8150day
TV and streaming0.4150evening
Induction or electric cooking1.53500meal
Microwave and kettle0.41500meal
Clothes washer (cold wash)0.3500day
Electric clothes dryer2.55000day
Shop tools (occasional)0.51800day

Climate inputs: one representative city per zone, rounded from NOAA 1991–2020 normals and NREL solar data. A teaching approximation, not for design.