Free tool · System size, cost, savings & payback
Solar Energy Calculator
This solar energy calculator sizes a home solar system from your electric bill and your state's sunshine. Then it runs the numbers for 25 years: cost, cash or loan payments, monthly bill before and after, payback year, net savings, return on investment and the carbon you avoid.
- All 50 states + DC
- Cash or loan
- Net metering options
- 25-year cash-flow chart
- Year-by-year table
- CO₂ avoided
By Chowdhury, FixHomeCost editor · Last reviewed October 2026
1. Your home and electricity use
2. The solar system
3. Payment and utility rules
Advanced options battery, upkeep, SRECs, NPV
All of these start at zero or a neutral value, so they only change the result when you fill them in.
- Recommended solar system
- –
- Cost after incentives
- –
- First-year savings
- –
- Monthly bill
- –
- Payback
- –
- 25-year savings
- –
- Roof space
- –
- CO₂ avoided
- –
- Net present value
- –
- Internal rate of return
- –
- Loan payment
- –
Year-by-year table
| Year | kWh | Rate | Savings | Payments | Net | Cumulative |
|---|
Show the full calculation step by step with your numbers
Assumes a 0.90 inverter and temperature factor, no value for yearly surplus above your use, a 90% round-trip battery, and today's utility rules for 25 years. Taxes on SREC income and roof work are not included.
Planning estimate only. Real output depends on your exact roof, shade and weather, and utility rules change. To see how many panels actually fit, use the solar roof calculator. Nothing you enter is sent to us.
How this solar energy calculator works
A good solar calculator starts with your electric use, not a sales target. This one works in four steps:
- Your yearly use. From kWh if you have them, or from your bill: (bill − fixed charge) ÷ rate × 12.
- System size. How many kW of panels it takes to cover your offset goal, given your state's peak sun hours, the roof direction and system losses. It rounds up to whole panels.
- Savings. Each kWh the panels make, up to your yearly use, is worth your rate. Net metering rules set how much exported power is worth.
- 25 years of cash flow. Each year the rate rises by your escalation figure and the panels lose 0.5% of their output. Loan payments and a later inverter replacement come out of the savings. Payback is the point where the running total turns positive.
State sun hours come from NREL data and state rates from EIA 2026 data. Both are averages, so replace them with your own numbers if you have them. The rate on your bill is best. Divide the total bill, minus the fixed customer charge, by the kWh used.
Solar panel calculator formulas and a worked example
kWh per kW per year = sun hours × 365 × direction factor × (1 − losses) × 0.90
System kW = yearly kWh × offset goal ÷ kWh per kW
Panels = system kW × 1,000 ÷ panel watts, rounded up
Cost = kW × 1,000 × cost per watt − incentives
Savings in year n = min(output, use) × rate × (1 + increase)n−1 × credit share
Output in year n = year-one output × (1 − degradation)n−1
The 0.90 accounts for inverter efficiency (PVWatts uses 96%) and the output panels lose when they run hot. With PVWatts' default 14% losses, the full derate is 0.86 × 0.90 = 0.774.
Worked example (the default inputs): a $180 monthly bill with a $15 fixed charge, the US average rate of 18.5¢ and 4.98 sun hours, a south roof, 430 W panels, $2.60 per watt, cash, full net metering, 3% yearly rate increases.
- Use: ($180 − $15) ÷ $0.185 × 12 = 10,703 kWh a year.
- Output per kW: 4.98 × 365 × 1 × 0.86 × 0.90 = 1,407 kWh.
- Size: 10,703 ÷ 1,407 = 7.61 kW, or 17.7 panels. Round up to 18 panels = 7.74 kW, about 10,889 kWh in year one. That's 378 sq ft of panels.
- Cost: 7,740 W × $2.60 = $20,124.
- Year-one savings: 10,703 kWh × $0.185 = $1,980. The bill drops from $180 to the $15 fixed charge.
- Over 25 years, savings grow with rates and shrink slightly with panel aging. The running total passes $20,124 in about 9.1 years and ends at about $48,500 net. That's a 241% return on the money spent.
- CO₂: 10,889 kWh × 0.000672 = 7.3 metric tons in year one, about 172 tons over 25 years.
With a 20-year loan at 7.5% and no money down, the payment is about $162 a month against $165 of average monthly savings in year one. The 25-year net drops to about $29,700 because of roughly $18,800 in interest.
Solar power calculator data: sun hours and rates by state
Peak sun hours are the daily solar energy on a south-facing roof at about 20°, expressed as hours of full 1,000 W/m² sun. Output per kW uses the same 0.774 derate as the calculator. Rates are the average of EIA's March and June 2026 residential prices. Summer and winter rates differ, so your yearly average may vary.
| State | Sun hours | kWh per kW / yr | Rate (¢/kWh) | Value of 1 kW / yr |
|---|---|---|---|---|
| Alabama | 5.21 | 1,472 | 16.8 | $247 |
| Alaska | 3.17 | 896 | 27.7 | $248 |
| Arizona | 6.54 | 1,848 | 15.4 | $285 |
| Arkansas | 5.18 | 1,463 | 13.9 | $203 |
| California | 6.08 | 1,718 | 34.0 | $584 |
| Colorado | 5.66 | 1,599 | 16.9 | $270 |
| Connecticut | 4.53 | 1,280 | 27.4 | $351 |
| Delaware | 4.80 | 1,356 | 18.5 | $251 |
| District of Columbia | 4.90 | 1,384 | 24.7 | $342 |
| Florida | 5.48 | 1,548 | 15.0 | $232 |
| Georgia | 5.17 | 1,461 | 15.7 | $229 |
| Hawaii | 5.82 | 1,644 | 47.5 | $781 |
| Idaho | 5.22 | 1,475 | 13.7 | $202 |
| Illinois | 4.51 | 1,274 | 19.4 | $247 |
| Indiana | 4.66 | 1,316 | 17.7 | $233 |
| Iowa | 4.75 | 1,342 | 14.7 | $197 |
| Kansas | 5.39 | 1,523 | 15.5 | $236 |
| Kentucky | 4.79 | 1,353 | 14.6 | $198 |
| Louisiana | 5.32 | 1,503 | 13.8 | $207 |
| Maine | 4.55 | 1,285 | 29.0 | $373 |
| Maryland | 4.88 | 1,379 | 22.0 | $303 |
| Massachusetts | 4.70 | 1,328 | 29.9 | $397 |
| Michigan | 4.47 | 1,263 | 22.1 | $279 |
| Minnesota | 4.61 | 1,302 | 16.3 | $212 |
| Mississippi | 5.26 | 1,486 | 15.6 | $232 |
| Missouri | 5.03 | 1,421 | 14.8 | $210 |
| Montana | 4.76 | 1,345 | 14.3 | $192 |
| Nebraska | 4.98 | 1,407 | 13.2 | $186 |
| Nevada | 6.41 | 1,811 | 13.6 | $246 |
| New Hampshire | 4.58 | 1,294 | 27.0 | $349 |
| New Jersey | 4.66 | 1,316 | 24.2 | $319 |
| New Mexico | 6.42 | 1,814 | 14.9 | $270 |
| New York | 4.50 | 1,271 | 29.0 | $369 |
| North Carolina | 5.25 | 1,483 | 15.4 | $228 |
| North Dakota | 4.45 | 1,257 | 13.0 | $163 |
| Ohio | 4.54 | 1,283 | 19.0 | $244 |
| Oklahoma | 5.50 | 1,554 | 13.9 | $216 |
| Oregon | 4.06 | 1,147 | 15.6 | $179 |
| Pennsylvania | 4.79 | 1,353 | 21.3 | $288 |
| Rhode Island | 4.70 | 1,328 | 29.6 | $393 |
| South Carolina | 5.33 | 1,506 | 16.0 | $241 |
| South Dakota | 4.86 | 1,373 | 14.8 | $203 |
| Tennessee | 4.82 | 1,362 | 14.6 | $199 |
| Texas | 5.22 | 1,475 | 16.2 | $239 |
| Utah | 5.39 | 1,523 | 13.3 | $203 |
| Vermont | 4.36 | 1,232 | 24.3 | $299 |
| Virginia | 5.01 | 1,415 | 17.1 | $242 |
| Washington | 3.95 | 1,116 | 14.7 | $164 |
| West Virginia | 4.57 | 1,291 | 15.9 | $205 |
| Wisconsin | 4.58 | 1,294 | 19.2 | $248 |
| Wyoming | 5.36 | 1,514 | 14.4 | $218 |
The last column multiplies the two. It shows why sunshine alone does not decide whether solar pays. Massachusetts gets less sun than Texas but has nearly twice the electricity price, so each kW of panels saves more there.
Net metering, payback and what changes the math
Solar panels make most of their power at midday, when most homes use little. Without a battery, a typical home uses roughly 30% to 40% of its solar power as it is made and sends the rest to the grid. What the utility pays for those exports matters a lot.
- Full retail net metering: every exported kWh offsets a kWh you buy later at the same rate. This gives the best payback.
- Partial credit: exports are credited below retail, often near the utility's wholesale or "avoided cost" rate. California's current net billing tariff works this way. In the example, a 35% direct-use share with exports at half of retail cuts year-one savings to about $1,340 and stretches payback to about 12.8 years.
- No export credit: only the power you use directly saves money. Payback in the example stretches to about 22 years, and a battery or a smaller system usually makes more sense.
Where batteries fit. A home battery stores midday solar for the evening, which raises the share of solar you use directly. Under full net metering it adds cost without adding savings, so it mainly buys backup power. Under partial or no export credit, it can win back much of the lost value. To test that here, raise "Solar used directly" to the share a battery would let you use, and add the battery price to the system cost by raising the cost per watt (battery price ÷ system watts).
Other things that move payback: the price per watt you actually get (quotes vary by $1 per watt or more), how fast rates rise, shade, and whether you will need a new roof or a panel upgrade first. Any extra power above your yearly use gets no value here, since most utilities pay little for a yearly surplus.
Paying for solar in 2026: cash, loan, lease and tax credits
The federal tax credit is over for systems you own. The 30% Residential Clean Energy Credit (Section 25D) does not apply to expenditures made after December 31, 2025, under the July 2025 tax law (Public Law 119-21). The IRS counts the expenditure as made when installation is complete, so a 2026 install gets nothing even if you signed or paid in 2025. Some older articles and sales sheets still show the 30%. Leave it out of your math.
Leases and PPAs work differently. The solar company owns the panels and may still claim a separate business credit (Section 48E) under its own deadlines. Projects that begin construction after July 4, 2026 generally have to be in service by the end of 2027. You don't get that credit directly. Ask how it is reflected in the monthly price and the yearly escalator.
Cash gives the best long-term return. A loan spreads the cost, and if the payment is close to your savings, solar can be cash-neutral from the start. Watch for loans with "dealer fees" built into the price. A low APR can hide a sizable markup on the system price. Compare the cash price and the loan price side by side.
State, city and utility rebates still exist in many places. Enter them in the incentives box. The DSIRE database lists programs by state.
What makes the best solar calculator (and how to use one)
- Use 12 months of kWh. One bill can be off by 40% between seasons. Most utilities show a yearly total online.
- Use your real rate. State averages hide big differences between utilities in the same state.
- Check the roof. This solar power calculator assumes you have the space. Count what actually fits with the solar roof calculator. Fire-code setbacks and odd roof shapes often leave less room than you expect.
- Replace an old roof first. Taking panels off later costs about $200 to $300 per panel. See roof replacement cost.
- Compare quotes on cost per watt. Divide each quote's price by its system watts. Then compare with the $2.60 US average and your state's figure.
- Check production for your address. State averages can be off by 10% or more for a coastal, mountain or foggy location. Run your exact roof through NREL's PVWatts and enter the kWh per kW it gives you by adjusting the sun hours.
- Plan for future loads. An EV adds roughly 3,000 to 4,000 kWh a year for 12,000 miles of driving. A heat pump can add more. Raise the offset goal if they are coming.
Frequently asked questions
How many solar panels do I need?
Divide your yearly kWh by your state's output per kW (about 1,000 to 2,000 kWh), then divide by the panel size in kW. A home using 10,700 kWh a year with 4.98 sun hours needs about 7.6 kW, or 18 panels of 430 W.
How much does a solar system cost in 2026?
About $2.60 per watt installed on average in mid-2026, so roughly $20,000 for 7.7 kW and $31,000 for 12 kW before local incentives. State averages range from a little over $2.10 to about $3.80 per watt.
What is a good solar payback period?
Under 10 years is good. 10 to 15 years is fair. Over 15 years, look hard at the price, your rate and your net metering rules. Most panels carry 25-year warranties, so payback should come well before that.
Can I still get the 30% solar tax credit?
Not for a system you own that was installed after December 31, 2025. The Residential Clean Energy Credit ended for expenditures after that date. Systems finished in 2025 or earlier can still claim it, and unused credit can carry forward. Leased systems may be priced with a business credit the installer claims.
Is a solar loan worth it?
It can be, if the APR is reasonable and the price is not padded with dealer fees. In the default example, a 20-year loan at 7.5% costs about $162 a month against about $165 of first-year savings, but it costs about $18,800 more in interest than paying cash.
How much CO2 does solar save?
EPA estimates about 1,405 pounds of CO2 avoided per MWh of electricity displaced, or 0.000672 metric tons per kWh. A system making 10,900 kWh a year avoids about 7.3 metric tons a year.
What is the best solar calculator to use?
One that uses your actual kWh and rate, your state's sun data, real net metering rules, current pricing without the expired 30% credit, and shows year-by-year cash flow. Use this solar calculator for the money side and NREL's free PVWatts tool for a detailed production check on your exact address.
Sources
Peak sun hours: state averages from NREL PVWatts (National Solar Radiation Database), 20° south-facing roof, as compiled by TheGreenWatt. Electricity rates: average of March and June 2026 residential prices, EIA Electric Power Monthly, Table 5.6.A. Average home use: EIA. CO₂ factor: EPA Greenhouse Gas Equivalencies Calculator (1,405.3 lb CO₂/MWh, AVERT marginal rate). Federal credit: IRS, Residential Clean Energy Credit. Lease and PPA credit deadlines: Solar Power World. Cost per watt: EnergySage (June 2026). Panel removal cost: Fixr.
Related tools and guides
This is general information, not a professional inspection. See how we research costs.