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 rules list and parameter object, so it always matches the code. Of 120 parameters, 92 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, less while snow covers part of the array.
  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 is fed only when someone is home and awake, then burns down slowly.
  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. Any hour with load left unmet counts as 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.

Rules of behavior

Besides its parameters, the model makes assumptions about what people and equipment do. These shape results more than most single numbers, so here they are in plain words.

  • Snow on panels. A snowfall covers part of the array: all of a flat array, about 20% of one tilted at 60°, in a straight line between. Covered panels make 10% of their normal output. Every day some of the cover clears: 8% a day on a flat array up to 40% at 60°, plus 30% more on a day above freezing and 15% more on a sunny day. Steep panels lose less in winter, but the gain is gradual, not a cliff.
  • Wood stove hours and banking. Someone feeds the stove only while they are home and awake (6 am to 10 pm). After the last loading it keeps burning low, starting at 35% of full output and fading over the night (to about a third every 3 hours). With "load the stove before leaving" on, a turned-down stove keeps burning while people are out and fades more slowly (about a third every 7 hours).
  • Blinds and windows. People close blinds on sunny glass only in the cooling season: when it is above 24 °C indoors and the day averages above 15 °C outdoors. Winter sun is never thrown away. Without air conditioning, people open windows when it is above 23 °C indoors, cooler outside but above 10 °C, and someone is home (night flushing).
  • Generator start, stop and hours. With a battery, the generator starts when usable charge falls below 20% or the battery cannot cover the load, covers the load, charges the battery and stops at 50%. With no battery it runs only while there is load it must carry. Run hours count energy delivered ÷ generator size, so short top-ups count as part of an hour. Fuel is 0.4 L per kWh delivered. Real generators idle and warm up, so real hours run higher.
  • Inverter overload. When the hour’s estimated peak is bigger than the inverter, the inverter trips: the share of the load above its size goes unserved and the hour counts as an hour without power.
  • The grid never goes down. A grid-tied home buys whatever solar and battery cannot cover and sells surplus at the export credit. The model has no grid outages, so a grid-tied battery only stores solar for later; in a real outage it backs you up only with backup-capable equipment.
  • Wells never run dry unless a yield is set. A well supplies whatever is asked of it, every day, unless a scenario sets a daily yield limit. Then any shortfall is a day short of water. Water quality and treatment are not modeled.
  • Heat pump in the cold. Heat pump efficiency (COP) falls as it gets colder, and so does its output: full above -5 °C, 80% at -15 °C, 40% at -25 °C, and none below. Electric backup strips (5 kW, COP 1) make up the rest, which shows up on the bill.
  • Free heat. Sun through the windows, people at home and the electricity used by appliances warm the house. Hot water does not count: it goes down the drain. A heat pump water heater takes heat from the room it sits in.
  • Garden water. The garden soil holds up to 40 mm of water. Rain fills it, plants draw it down, and the garden is watered only for what the soil cannot supply. Above a daily mean of 26 °C yields start to fall, down to 30% at 30 °C and above: the hot-summer gap in the Gulf Coast and desert.
  • Hens and day length. Hens lay most with 13 or more hours of daylight and slow to 40% on the shortest days, and less again in deep cold. Eggs count toward the food total in calories, alongside vegetables.
  • Water and food settle once a day. Rain, tank level, garden water and harvest are settled at midnight; electricity and heat run hour by hour.

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. Shortcuts that dodge the lesson (staying on the grid, switching fuel, moving to another climate) are fixed in each scenario and tested to lose. If a model change breaks any of that, the build fails.

  • A cloudy week in December: Keep the lights and fridge on for 7 overcast days: no hours without power, and fewer than 10 hours of generator if you add one.
  • Drought summer: Get from June 1 through August on rain water alone without the 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 off-grid year for two on rain water, 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): power every hour of the year, with fewer than 5 generator hours in every month.
  • Heat pump in the north: Keep indoors at 64 °F (18 °C) or warmer for 98% of hours, December through February near Duluth (zone 7), with a heating bill under $450.
  • The well runs low: Get from June 1 through August without a single day short of water.
  • A real cold snap: Keep the power on for three weeks of January near Chicago (zone 5A), through a 10-day cold snap.
  • Pay back the panels: Bring a year’s net electricity bill (what you buy minus the credit for solar you sell) under $300 near Kansas City (zone 4A), staying on the grid.

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
snowCoverFlat 1 share of a flat array covered after a snowfall National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
snowCoverAt60
Steep panels shed most snow as it falls.
0.2 share of a 60° array covered after a snowfall National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
snowFullMm 5 mm of snowfall (water equivalent) that gives full cover National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
snowCoveredOutput 0.1 output of a snow-covered panel, share of normal National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
snowSlidePerDay
Tuned so winter-month snow losses land near 20 to 40% on low tilts in snowy zones and stay small on steep tilts (NREL snow-loss studies).
flat: 0.08; at60: 0.4; warm: 0.3; sunny: 0.15 share of the cover that clears each day: by tilt, plus extra on days above freezing or with sun 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
dischargeToPlug 0.9 share of stored lithium battery energy that reaches the plug (battery out-path × inverter) National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Simplification
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 usable capacity lost per °C below 20 °C (it comes back when the battery warms) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification

inverter

ParameterValueUnitSourceStatus
efficiency 0.94 fraction National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) Sourced
idleW 25 W idle draw (an off-grid inverter draws this around the clock) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification

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
lightLoadFuelShare 0.25 share of full-load fuel a running generator burns with little or no load (a manual run) US Consumer Product Safety Commission 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
heatPumpCapacity
A typical cold-climate air-source heat pump. Older or standard units lose capacity sooner.
full: -5; mid: -15; midFrac: 0.8; lowFrac: 0.4 share of rated output: all of it above “full” °C, “midFrac” at “mid” °C, “lowFrac” at the COP cutoff, none below US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
backupStripKW 5 kW of electric resistance backup with a heat pump (COP 1) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
stoveBankFraction 0.35 share of full stove output right after the last loading (banked stove) US Environmental Protection Agency Simplification
stoveDecayHours 3 hours for an untended stove’s output to fall to about a third US Environmental Protection Agency Simplification
stoveAwayDecayHours 7 the same for a stove loaded and turned down before leaving for the day US Environmental Protection Agency Simplification
groundMinC 4 °C lowest ground temperature under the floor US DOE and Pacific Northwest National Laboratory Simplification
groundAboveJanC 8 °C the ground under a house sits above the January air mean US DOE and Pacific Northwest National Laboratory Simplification
designTempC
Rounded ASHRAE 99% values for Houston, Phoenix, Atlanta, Kansas City, Seattle, Chicago, Denver, Minneapolis and Duluth.
7: -26; 2A: -2; 2B: 4; 3A: -5; 4A: -14; 4C: -3; 5A: -17; 5B: -14; 6A: -22 °C heating design temperature (99%) for each zone’s city US Department of Energy Simplification
gainUtilization
The ISO 13790 monthly method.
a0: 1; tau0: 12 share of free heat that offsets heating: a = a0 + time constant (h) ÷ tau0 US DOE and Pacific Northwest National Laboratory 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
ventMinOutdoorC 10 °C outdoors below which people keep windows shut (no airing out heat in winter) 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
blindsOutdoorAboveC 15 °C daily outdoor mean above which blinds are used (cooling season only) 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 = efficient (WaterSense) fixtures, about 25 gal; typical = the older US average from before efficient fixtures, about 53 gal; heavy = about 80 gal.
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
soilBucketMm 40 mm of water the garden soil holds for the plants University of Minnesota Extension 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
heatStressStart 26 °C daily mean above which yields start to fall University of Minnesota Extension Simplification
heatStressTemp 30 °C daily mean at and above which yields drop to heatStressFactor University of Minnesota Extension Simplification
heatStressFactor 0.3 share of yield in the hottest weather (the Gulf Coast and desert summer gap) 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.8 eggs per hen per day at full light University of Minnesota Extension Sourced
henLight
Unlit backyard layers: about 200 to 240 eggs a year.
floor: 0.4; startH: 9.5; fullH: 13 laying share: “floor” on short days, full at “fullH” hours of daylight University of Minnesota Extension Simplification
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
kcalPerPersonDay 2200 kcal per person per day (for the food total) USDA and US Department of Health and Human Services Simplification
irrigationMmPerC 0.2 mm/day of water need per °C above 5 °C University of Minnesota Extension Simplification

actions

ParameterValueUnitSourceStatus
haulLoadL 1893 L per trucked water delivery (about 500 gal) Texas A&M AgriLife Extension Simplification
generatorRunH 2 hours of a manual generator run US Consumer Product Safety Commission Simplification
cutBackH 12 hours non-essential loads stay off when you cut back US Department of Energy (archived copy; the page was removed from energy.gov in mid-2026) Simplification
cordKg 1600 kg in a cord of seasoned hardwood (about 3,500 lb) US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) Simplification
spaceHeaterKW 1.5 kW plug-in electric space heater, thermostat set to the house setting US Department of Energy (archived copy; the page was removed from energy.gov in mid-2026) Simplification
spaceHeaterH 12 hours a space heater runs once switched on US Department of Energy (archived copy; the page was removed from energy.gov in mid-2026) Simplification
windowsOpenH 2 hours the windows stay open US Department of Energy, Energy Saver (archived copy; the page was removed from energy.gov in mid-2026) 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.