I just installed 8.16kW Tesla solar panels on my home. 24 panels total. Past inspection last week, but still waiting for PTO (permission to turn on). Total cost is $18k, but after federal tax credit (26%) and making use of sign-on bonuses/points on credit cards (they let you pay with multiple credit cards) it will be a tad above $10k. No other company came close to the $18k price. In fact many local installers were double. I anticipate payback would be ~4 years.
I personally decided not to go with the battery (aka Powerwall) because I feel that it's not worth the price. We don't really get power outages (wires are underground) and I don't own an EV. Yes I know I could rely nearly 100% of my energy through solar if I got powerwalls, but still overpriced for my usage. Even if you have a electric car to fully charge you would need at least 4 powerwalls and then a higher percent offset meaning likely more panels. As the batteries get more efficient and cheaper I may get it down the road. Your case may be different of course.
With that being said research about your state/local existing solar program. In California we have something called NEM (currently NEM 2.0). Check to see what kind of ‘solar fees’ your electric company has if they do. Research what the buy back is for each kWh and true-up in your local area. Look at your daily and monthly electric usage and compare to the amount of panels you would need to offset that. I also recommend assessing your home. How old is your roof? How would the panels be laid out? Do you have anything that would cast shadows on your panels? Large trees? A chimney? How much sun do you get in your area? All these are factors to consider and more.
Here is my total production from a few days ago. 2 days ago I hit 57.7kWh, however yesterday had a lot of cloud coverage and was in the low 40s. Definitely making way more then we use.