What Is SAM (System Advisor Model)?
SAM is free, open-source desktop software for projects from a residential rooftop to a utility-scale plant. The interface runs only on the desktop, but the same simulation engine can be run from code through PySAM or the SDK.
It suits developers and engineers comparing system configurations, financial analysts testing ownership and PPA structures, and consultants, researchers and students. Bill-savings analysis is strongest for U.S. projects, because the Utility Rate Database (URDB) that supplies its tariffs covers mostly U.S. utilities. It is not a sales tool: it produces no customer proposals and has no cloud collaboration, so installers who need fast quotes will work faster in a design-and-proposal platform.
SAM (System Advisor Model) ties an hourly performance model to a project cash-flow model. You enter a weather file, the system design, an electricity tariff and the financing terms, and a run returns annual energy yield, levelized cost of energy (LCOE), NPV, IRR and payback for that case.
The National Laboratory of the Rockies (NLR, formerly NREL) built SAM with Sandia National Laboratories in 2005 for internal U.S. Department of Energy analysis. The first public version came out in August 2007 as the Solar Advisor Model, and it was renamed System Advisor Model in 2010 when non-solar technologies were added. More than 35,000 people have downloaded it since then, including manufacturers, project developers, academic researchers and policy makers.
Pros and Cons
Pros
- Free and open-source under the BSD 3-Clause license, with no per-seat licenses.
- Performance and finance share one model, so a design change flows straight through to LCOE, NPV and payback.
- One tool for PV, storage, wind, CSP and other technologies, which helps when comparing options or modeling hybrid plants.
- Maintained by NLR with DOE funding, with a new release every year and published validation studies for the PV and CSP models.
- Parametric runs and P50/P90 analysis are built in, so you can test how weather and cost assumptions move project returns.
- Users can put questions straight to the development team at free online Round Tables or on the forum.
Cons
- Steep learning curve, and NLR offers no training courses or certification.
- Desktop-based workflow limits real-time collaboration.
- User interface feels less modern than newer SaaS platforms.
- Modules and inverters missing from the built-in libraries must be entered by hand from datasheets.
Features
Performance Modeling
Detailed PV (separate module and inverter models) or the simpler PVWatts model, plus CSP (trough, tower, linear Fresnel), wind, biomass, geothermal, marine, solar water heating and hybrid systems.
Financial Models
Residential, commercial and third-party ownership for behind-the-meter projects; PPA single owner, partnership flip, sale leaseback, community solar and merchant plant for front-of-meter projects; plus a simple LCOE calculator.
Battery Storage Modeling
Lithium-ion, lead-acid and flow batteries paired with PV or a generic system (there is no standalone battery model), with degradation tracking that shows when replacements fall due.
Parametric and Sensitivity Analysis
Run multiple automated simulations to compare design and financial scenarios.
P50/P90 Statistical Analysis
Monte Carlo uncertainty plus year-to-year weather variability, for PV only (Detailed PV and PVWatts) and one location per run; it needs multi-year weather files such as an NSRDB series.
Open-Source Codebase
The source code is on GitHub (NatLabRockies/SAM), so you can check how a result is calculated or modify the models.
Software Development Kit (SDK)
Run the SSC simulation engine from your own code; SAM's code generator turns any case into a ready-to-run program to start from.
SAM (System Advisor Model) Pricing
SAM is completely free to download and use.
Free Desktop Application: Windows 11/10 (64-bit), macOS 12 Monterey or later, and Linux.
No Subscription Fees: All simulation features are included at no cost.
Open-Source License: Distributed under the BSD 3-Clause License.
Free Documentation and Webinars: Help files, recorded webinars, how-to videos and a user forum.
Integrations
- Weather Data Sources: Download NSRDB data from SAM's location input page; files from Meteonorm, Solargis, PVGIS and other providers can be imported.
- Utility Rate Database: Download a utility's tariff from URDB into SAM's rate inputs, then check it against the utility's current rate schedule.
- Python Integration: PySAM, a Python package, runs SAM's models from scripts for batch and server-side work.
- Excel Compatibility: Import and export data as spreadsheets; on Windows, "Send to Excel with equations" exports the cash flow with live formulas.
- Developer SDK: Supports C/C++, C#, Java, MATLAB, Python, and VBA.
- Third-Party Weather Services: Solcast data downloads through an LK script; SolarAnywhere files convert with SAM's resource file converter macro.
How to Set Up SAM (System Advisor Model)
- Download the installer for your operating system from the official NLR SAM website.
- Install the application and launch the software.
- Register an email address to receive a free registration key.
- Activate the software using the provided key.
- Optionally install PySAM if you plan to script simulations in Python; the SSC library and SDKtool already come with SAM.
How to Use SAM (System Advisor Model)
Each new case starts with two choices: the performance model (for example Detailed PV or PVWatts) and the financial model (for example Residential or PPA Single Owner). Next you set the location, either by downloading NSRDB weather data from inside SAM or by loading a weather file you already have.
Then you define the system: modules, inverters and orientation, with a sizing assistant for the module and inverter counts. The financial inputs follow: installed cost, loan terms, utility tariff and incentives. After a run, the results pages show the energy production forecast, the annual cash flow and LCOE, and the tables and graphs can be exported.
What You Can Manage with SAM (System Advisor Model)
- Energy Production Reports: Analyze hourly and annual renewable energy generation.
- Financial Projections: Model long-term project cash flows, IRR, and payback periods.
- Battery Dispatch Strategies: Compare automatic peak shaving, dispatch against time-varying prices, and manual charge/discharge schedules.
- Utility Rate Analysis: Compare a customer's bill savings under different tariff structures.
- System Sizing: Size the PV array and tune the DC/AC ratio, using parametric runs to compare options.
FAQs
What does SAM (System Advisor Model) do?
SAM simulates renewable energy system performance and financial outcomes, helping users estimate energy production, project costs, and investment returns.
Who is SAM (System Advisor Model) best for?
Developers, engineers, analysts, consultants, researchers and students who need detailed performance and financial modeling rather than a quick quote. It is a poor fit for installers who mainly need fast sales proposals or shared cloud projects.
Is SAM (System Advisor Model) free?
Yes. SAM is free, open-source software (BSD 3-Clause license) developed by NLR with U.S. Department of Energy funding.
What are the main limitations of SAM (System Advisor Model)?
The learning curve is steep, the interface is desktop-only with no cloud collaboration, P50/P90 analysis covers PV only, and the tariff data behind bill-savings analysis is mostly U.S.
What are the best alternatives to SAM (System Advisor Model)?
It depends on the job: PVsyst for detailed PV yield studies, Aurora Solar and HelioScope for layout-based design and sales proposals, and PVWatts, NLR's own online calculator (SAM includes it as its simple PV model), for a quick first estimate.




