Solar Panel Calculator: Size Your System & ROI in Minutes
Learn how to size a solar system, calculate battery storage, and estimate payback period with our simple formula guide. Includes real-world examples.
I've helped a bunch of homeowners figure out their solar setup and the biggest screw up I see every single time is guessing instead of using actual numbers, like your neighbor tells you his cousin has 20 panels so now you're convinced you need exactly 20 panels too even though your house faces a completely different direction and you use way more electricity because you've got a pool pump and an EV and a home office that runs twelve hours a day. Nope. That's not how any of this works and you're gonna end up with a system that's either way too small or way too big and an installer who's happy to take your deposit either way. A solar calculator is just three formulas stitched together and honestly once you actually sit down and run them yourself the whole thing becomes embarrassingly simple, middle school math level, and you'll wonder why installers charge a design fee for something you could sketch on a napkin in ten minutes.
Yep.
So the first formula figures out how big your system actually needs to be and it's basically just your annual kWh usage divided by 365 times peak sun hours times 0.8 and that's it, that's the whole thing, nothing fancier than what you learned in seventh grade pre-algebra. That 0.8 accounts for all the real world junk that eats into your production like shading from that oak tree you refuse to cut down, the inverter losing a few percent in conversion, dust and pollen and bird droppings building up on the panels between rain storms, all the stuff the glossy solar brochure conveniently shows pristine panels gleaming under perfect blue skies while forgetting to mention. I mean tbh 0.8 is a rule of thumb and your actual system losses might be a bit higher or lower but for most residential rooftop setups it's close enough to get started.
Peak sun hours vary like crazy by location and honestly this is where most people mess up and buy the wrong size system. Phoenix gets about 6.5 hours. Seattle gets 3.5. That's nearly double and it completely changes what you need, so a Phoenix house with identical energy usage to a Seattle house requires a system that's almost half the size and almost half the cost. Don't guess and don't use some generic national average from a blog post that was probably written by someone who's never even seen a solar panel up close. Two minutes on the NREL PVWatts website typing in your zip code gives you the real number for your actual address and that one tiny step saves you from buying either way too many panels or way too few.
Worth it.
Example. A Denver home using 10,000 kWh per year at 5.5 peak sun hours. The math is 10,000 divided by 365 times 5.5 times 0.8, which is 10,000 divided by 1,606, which lands you at about a 6.2 kW system. Now you know exactly what size system to ask installers for and when some sales guy tries to pitch you a 10 kW system because your roof is quote big enough unquote you can look him in the eye and say that's 60 percent more than I actually need and watch him scramble to justify the upsell which is incredibly satisfying and probably saves you eight grand right there. Boom.
Panel count is even simpler than system sizing and I love how straightforward this one is. Residential panels run from about 300W to 450W these days and the formula is just system size kW times 1000 divided by panel wattage and that's literally it, you're done. For 6.2 kW with 400W panels you get 15.5 which rounds up to 16 panels. I'm a fan of 400W panels for most installs because they sit in that Goldilocks zone where you're not paying premium 450W prices but you're also not dealing with the lower efficiency and extra labor of stuffing 350W panels all over your roof and the slight premium over cheaper panels pays for itself in fewer units and less racking and less wiring and less time for the crew on your roof, you get the idea.
Small roof? 450W panels, 14 units, done. Huge south facing roof with nothing competing for space? 350W panels, 18 units, cheaper per panel but more labor. Same total system power either way.
Battery math gets hairier because it totally depends on what you're trying to accomplish and honestly most people don't even think through the scenarios before they start shopping. Want a battery that keeps the fridge and internet on through a two hour evening blackout? That is a very different battery than the one you'd need to run your whole house including air conditioning and EV charging through a three day winter storm outage, and the price difference between those two use cases is literally ten to fifteen thousand dollars so you should probably figure out which camp you're in before an installer hands you a quote with a five figure battery on it that you might not even need.
The formula I start with is battery capacity kWh equals daily kWh usage times backup hours divided by 24. Plug in a 2,000 square foot house burning 30 kWh per day wanting 10 hours of backup and you get 30 times 10 divided by 24 equals 12.5 kWh. A single Tesla Powerwall 3 holds 13.5 kWh.
Barely.
Honestly if I were doing this again I'd go with two units for 27 kWh total because hot summer days with the AC cranking can blow through a single Powerwall way faster than the spec sheet suggests and there's nothing more depressing than making a five figure investment in backup power and then watching your battery hit zero at 2 AM during an actual extended outage that you specifically bought the thing for.
| Battery | Usable Capacity | Price Installed | Warranty |
| Tesla Powerwall 3 | 13.5 kWh | $11,500 | 10 years |
| LG Chem RESU16H | 16 kWh | $9,800 | 10 years |
| Enphase IQ Battery 10T | 10 kWh | $9,000 | 10 years |
Wild.
Now the ROI calculation is where the calculator really earns its keep because it takes all those fuzzy feelings about saving the planet and helping the grid and turns them into actual dollars and cents that you can compare against putting the same money in an index fund or paying down your mortgage or whatever else you might do with ten to twenty thousand dollars that you worked hard to earn. The formula is payback years equals total system cost divided by annual savings and your total cost covers panels plus inverter plus battery if any plus installation plus permits minus the 30 percent federal tax credit. Annual savings is your yearly kWh times your electricity rate minus any net metering fees.
Running the Denver example through. $15,000 before credits becomes $10,500 after the 30 percent federal ITC and annual savings is 10,000 kWh times 12 cents per kWh equals $1,200. Payback is $10,500 divided by $1,200 which is 8.75 years. With panels lasting 25 years you get over 16 years of basically free electricity after you break even and that's a genuinely solid return, way better than most things you can do with ten grand, but also not the overnight riches that some solar sales pitches make it sound like.
I've watched people make some really expensive mistakes sizing their systems and the most common one by far is using the wrong sun hour number. My buddy oversized his system by 50 percent because he grabbed a national average when he lives in Ohio and by the time I caught it his deposit was already non refundable and he paid for capacity he will literally never use in his lifetime.
Ouch.
Another classic that sneaks up on people. Almost nobody factors in inverter replacement cost even though inverters die after 10 to 15 years and cost $1,500 to $2,500 to swap out and that bill lands right around year twelve when you thought you were coasting in the free electricity zone and suddenly there's an unexpected four figure expense staring at you that completely blows up your payback math if you haven't planned for it. And the tax credit catches people off guard every single tax season because it's non refundable which means if you only owe $5,000 in federal taxes your credit maxes out at $5,000 for that year even if 30 percent of your system cost would be $6,000. The remaining thousand rolls forward to next year so you don't lose it completely but it also doesn't land in your bank account in April when you were counting on that full refund to pay off part of the loan you took out for the system.
When I help someone size a system I make them do the math themselves before calling any installer. Pull twelve months of bills for total annual kWh, get your actual peak sun hours from NREL PVWatts, run the three formulas by hand, then call for three or four quotes and compare. This stupid simple four step check has saved people I know anywhere from three grand to twelve grand by catching oversizing and overpricing and equipment markups and all the other games that some installers play when they know you haven't done your homework and you're walking in blind.
If your utility has time of use rates adjust your savings math because the difference between off peak charging and peak discharging can double or triple your effective savings and in places like California with NEM 3.0 where export rates got absolutely gutted batteries are basically mandatory if you want any ROI at all. The utility pays you pennies for power you used to get retail rates for so you're way better off storing it and using it yourself rather than sending it back to the grid for almost nothing.
Can you use this calculator for a tiny cabin? Yep. A mansion with electric everything? Also yep. Just plug in different usage numbers because the formulas scale linearly and a cabin using 10 kWh per day needs a system roughly one fifth the size of a big house burning 50 kWh per day. Online calculators are within 10 to 15 percent if you feed them accurate inputs but shading is the big wildcard that almost nobody accounts for and if you have trees near your roof subtract 20 percent from whatever the calculator spits out for a safer real world estimate, just a little margin of safety that prevents disappointment.
Do you need a battery with net metering? Probably not. The grid is your free battery and unless your utility has terrible export rates or you specifically want outage backup protection there's no financial case for spending ten grand on a Powerwall that sits on your wall looking cool but never really pays for itself. In California with NEM 3.0 the math has flipped completely and batteries are becoming essential but in most states with decent net metering policies you can skip the battery entirely and put that money toward more panels or a better inverter or literally anything else that gives you a faster payback.