Written and maintained by CASRAI Editorial Board
Published
On this page
ResStock is a U.S. Department of Energy model of the residential building stock. It combines a database of housing characteristics, physics-based simulation and high-performance computing to estimate how energy is used across a region’s homes and which upgrades would save the most energy and money. It is developed at the National Laboratory of the Rockies (NLR), and most analysts use its published datasets rather than running the model themselves.
Definition and scope
The Department of Energy describes ResStock as a multi-resolution residential stock modeling framework: instead of simulating one house, it generates statistically representative building models for a region and simulates them. The project began in 2014 and is carried out by the laboratory in Golden, Colorado, with Department of Energy technology managers overseeing it. The project site describes the model as combining a housing stock characteristics database with physics-based modeling and high-performance computing, and says that, together with its commercial-building sibling ComStock, it helps states, municipalities, utilities and manufacturers find the improvements that save the most energy and money.
The scope is therefore the existing U.S. residential stock, at national, regional and local scales. The GitHub repository states that ResStock models existing residential building stocks at those three scales, and that it is built on OpenStudio and uses EnergyPlus for the simulation itself. The repository’s main project folder is named project_national for exactly this reason: it holds the inputs that describe the existing national housing stock.
What ResStock is not: it is not a calculator for one specific house, and it is not a forecast of a particular household’s bills. The design goal stated on the Department of Energy page is representativeness of a region’s stock. That makes it a tool for people who ask questions about populations of homes, such as how many homes in a state share a wall construction type and what a given insulation upgrade would do across them.
How ResStock works in practice
The documentation’s architecture page and the repository README describe a pipeline that moves from probability tables to simulated dwelling units. The stages below follow those two sources. The data table at the end of this page lists each stage with the file or measure involved.
1. Housing characteristics stored as probability distributions
The model’s description of the housing stock lives in tab-separated files in project_national/housing_characteristics. According to the README, each housing characteristic is stored as a conditional probability distribution. The Department of Energy page says the framework combines multiple data sources, including the Energy Information Administration’s Residential Energy Consumption Survey (RECS), into high-resolution conditional probability tables covering characteristics such as square footage, insulation, window type and HVAC type and efficiency. Because the tables are conditional, the probability of one characteristic (for example, a heating system type) can depend on others.
2. Sampling a set of buildings
Sampling turns the probability tables into a concrete list of homes. The architecture page shows a manual command, openstudio resources/run_sampling.rb -p project_national -n 10000 -o buildstock.csv, which writes a file called buildstock.csv into the resources directory. Each simulation, which the documentation calls a datapoint, looks up its building description in a row of that file. The documentation also notes that a custom buildstock.csv can be supplied through the precomputed sampler, and that anyone who downselects buildings by editing the file must re-enumerate the Building column from 1 to the number of rows.
3. Mapping options to model arguments
Sampled characteristic values are labels such as a wall type or window type. The README explains that resources/options_lookup.tsv maps those characteristic parameters to the arguments of OpenStudio measures. The same lookup supports upgrades: the architecture page says options for an upgrade scenario come from options_lookup.tsv as well, and the README says upgrades are defined in the project’s YAML file.
4. Building each dwelling unit
For each datapoint the workflow runs a sequence of measures. The input file ultimately determines which steps run. The documented order is BuildExistingModel (required), ApplyUpgrade (optional and not applied to baselines), HPXMLtoOpenStudio, UpgradeCosts, optional other model measures, ReportSimulationOutput, ReportUtilityBills, optional other reporting measures and ServerDirectoryCleanup. Model measures run before the simulation and build the model; reporting measures run after it and process the output. The two meta measures, BuildExistingModel and ApplyUpgrade, call four child measures: ResStockArguments, BuildResidentialHPXML, BuildResidentialScheduleFile and ResStockArgumentsPostHPXML.
Two of those children are worth knowing by name. BuildResidentialHPXML creates an HPXML file for the dwelling, generating geometry in OpenStudio and mapping it to HPXML surfaces. BuildResidentialScheduleFile produces stochastic occupancy schedules as a CSV file; the documentation says the method uses Markov chains derived from American Time Use Survey data, supplemented with NEEA RBSA and Aquacraft/AWWA data. The README adds that, from version 3.0.0, individual dwelling unit models are built with the OpenStudio-HPXML measures.
5. Simulation and outputs
EnergyPlus runs each dwelling model. ReportSimulationOutput then writes an annual output file and, optionally, a timeseries file. ReportUtilityBills calculates electric, gas and other fuel bills using fixed charges and marginal rates, with net-metering and feed-in-tariff options for photovoltaic compensation. ServerDirectoryCleanup removes EnergyPlus output files unless they are retained; by default only in.idf and the schedules CSV files are kept. The README states that large runs require buildstockbatch from version 2.3.0 onward, while workflow/run_analysis.rb serves small tests.
Terms the documentation uses
Four terms recur in the architecture page and are easy to confuse. A datapoint is a single simulation, identified by its row in buildstock.csv. An upgrade scenario is a set of options with logic and costs, defined by one ApplyUpgrade instance; datapoints that the downselect logic excludes end as a completed invalid workflow rather than as an error. A meta measure is a measure that incrementally applies other measures, which is why BuildExistingModel and ApplyUpgrade are described that way. Model measures run before simulation and reporting measures after it. OS-HPXML refers to the OpenStudio-HPXML repository that supplies several of the core measures, and UpgradeCosts multiplies a cost value by a cost multiplier when an upgrade is applied.
Published datasets or your own run: which route the documentation points to
The main documentation page tells users that most analysts should use the datasets published on the ResStock Data Viewer, describing them as often the best choice because they are a verified run that can be referenced. Running the source code is presented as the route for complex analyses such as custom upgrade scenarios. The table below sets the two routes side by side using only what the project’s pages state.
| Question | Use published datasets | Run the source code |
|---|---|---|
| What the documentation says about it | Often the best choice, because it is a verified run that can be referenced | Intended for complex analyses, such as custom upgrade scenarios |
| Where results come from | The ResStock Data Viewer and published datasets | Your own simulations from the public source code and input probability distributions |
| Computing needs | None stated beyond viewing and downloading results | Can require a lot of computing resources; running on Amazon Web Services needs cloud computing knowledge |
| Support | Documentation and an FAQ listing known bugs and planned improvements | The team states it does not have the resources to provide technical support for self-run simulations, including AWS |
| Large runs | Not applicable | buildstockbatch is required from version 2.3.0; run_analysis.rb for small tests |
The project site adds that the Data Viewer shows state-level results that can be filtered by characteristics such as vintage, heating fuel and wall construction, and that the source code and the input probability distributions are public. The documentation also says results for upgrade scenarios have been made available over time.
Related concepts: ComStock, OpenStudio, EnergyPlus and Scout
ComStock
ComStock is the commercial-building counterpart. The project site presents the two together: with ComStock, ResStock helps states, municipalities, utilities and manufacturers identify the improvements that save the most energy and money. The README names ComStock as a sister tool. The Department of Energy also hosts a separate page on multifamily building stock modeling.
OpenStudio and EnergyPlus
These are the software layers ResStock stands on. OpenStudio supplies the measure framework in which the workflow steps are written, and EnergyPlus is the simulation engine that computes each dwelling’s energy use. The links in the definition section lead to our entries on both tools.
Scout
The Department of Energy’s ResStock page lists Scout among related efforts alongside OpenStudio. The page does not describe Scout in further detail, so this page does not either.
Versions
The documentation’s changelog section names releases from v1.0.0 through v3.4.0, a 2025 Release 1 and a development changelog for unreleased work. Because the model and its input distributions change between releases, a result is only reproducible when the release and dataset are named.
Where ResStock matters for research and planning
The Department of Energy page gives one concrete illustration of the output. It shows payback-period heat maps for insulation upgrades across housing segments in Washington and Oregon, where green marks a short payback, and argues that coarser analysis would miss the segments where an upgrade pays back quickly. The practical value is the segmentation: the same upgrade can look different across housing types, and a stock model lets an analyst see where.
For researchers and research offices, three habits follow from how the project describes itself.
- Cite a verified run. The documentation recommends published datasets because they can be referenced. Record which dataset and release you used, and treat that as part of the study’s computational reproducibility record.
- Keep provenance. A custom upgrade scenario is defined by project YAML, the options lookup and the sampled
buildstock.csv. Archiving those files with your results is the straightforward way to preserve data provenance, and our guide on versioning research datasets covers how to label successive versions. - Budget for compute and support. The documentation warns that self-run simulations can need a lot of computing resources and that the developers do not support them, which matters when a grant budget or a research computing request is being planned.
Sampling is a probabilistic step, which is why simulation work of this kind sits close to the ideas explained in our Monte Carlo simulation guide. That is an editorial connection; the ResStock documentation itself does not use that term in the pages cited here.
Common misunderstandings
It is not a single-home calculator
The framework generates statistically representative models for a region. The output describes the modeled stock and its segments, not any one household.
It is not the same as OpenStudio or EnergyPlus
ResStock is built on those tools and supplies the housing characteristic distributions, sampling and workflow around them. The README identifies it as an application of OpenStudio that uses EnergyPlus for simulation.
Running it yourself is not the expected default
The project directs most analysts to the published datasets. Running the code is the route for complex analyses, and it carries compute needs and no technical support from the team.
Documentation versions differ
The project documentation is versioned. A page for an older release, such as the setup pages for earlier 2.x versions, may describe a different workflow from the current one, so the release number matters when you cite the method.
Sources
- U.S. Department of Energy: ResStock, checked 2026-11-20
- National Laboratory of the Rockies: ResStock project site, checked 2026-11-20
- ResStock documentation: main page and changelog index, checked 2026-11-20
- ResStock documentation: ResStock Architecture, checked 2026-11-20
- GitHub: NatLabRockies/resstock repository README, checked 2026-11-20
Data: ResStock modeling pipeline: stages, files and measures
Cross-walk of the ResStock workflow stages to the files, measures and tools involved, compiled from the project's architecture documentation, the GitHub README and the Department of Energy project page.
Coverage: United States.
| Stage | File, measure or tool | Role | Source |
|---|---|---|---|
| Housing characteristics | project_national/housing_characteristics/*.tsv | Conditional probability distributions describing the housing stock | GitHub README; DOE ResStock page |
| Sampling | resources/run_sampling.rb to buildstock.csv | Draws a set of homes; each datapoint reads one row | Documentation: ResStock Architecture |
| Option mapping | resources/options_lookup.tsv | Maps characteristic and upgrade options to OpenStudio measure arguments | GitHub README; Architecture page |
| Upgrade definition | Project YAML; ApplyUpgrade measure | Defines an upgrade scenario; optional, not applied to baselines | GitHub README; Architecture page |
| Model building | BuildExistingModel, HPXMLtoOpenStudio, UpgradeCosts | Builds the dwelling model before simulation | Documentation: ResStock Architecture |
| Dwelling description | BuildResidentialHPXML, BuildResidentialScheduleFile | Creates an HPXML file and stochastic occupancy schedules | Documentation: ResStock Architecture |
| Simulation | EnergyPlus | Simulates each dwelling unit | GitHub README |
| Reporting | ReportSimulationOutput, ReportUtilityBills | Annual and optional timeseries output; utility bills | Documentation: ResStock Architecture |
| Cleanup | ServerDirectoryCleanup | Deletes EnergyPlus output unless retained; keeps in.idf and schedules CSV by default | Documentation: ResStock Architecture |
| Large runs | buildstockbatch (v2.3.0+); workflow/run_analysis.rb for small tests | Runs the workflow at scale or for small tests | GitHub README |
Sources
- ResStock documentation: ResStock Architecture (accessed 2026-11-20)
- GitHub: NatLabRockies/resstock README (accessed 2026-11-20)
- U.S. Department of Energy: ResStock (accessed 2026-11-20)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







