Solar Panel and Battery Calculator: Sizing Guide

How-to basics · Updated November 23, 2026

A solar panel and battery calculator sizes a solar power system by matching daily energy use with solar production and battery storage. The core formula is: battery capacity (kWh) = daily consumption (kWh) × days of autonomy ÷ depth of discharge, and solar array size (kW) = daily consumption ÷ peak sun hours ÷ system efficiency. Below, we break down every input, walk through a real example, and cover the common mistakes that lead to undersized or oversized systems.

What the Calculator Actually Does

Solar calculators combine three separate calculations into one result: how much energy you use, how much solar you need to generate that energy, and how much battery storage you need to cover nights and cloudy days. Each part depends on different variables, and changing one input (like adding a refrigerator) shifts all three outputs.

The typical output is a recommended solar array size in kilowatts (kW) and a battery capacity in kilowatt-hours (kWh). Some advanced calculators also estimate the number of panels, inverter size, charge controller rating, and wiring gauge. The accuracy depends entirely on the quality of your inputs, especially your daily energy consumption and your location’s peak sun hours.

Key Inputs You Need Before You Start

Most calculators ask for the same set of inputs. Gather these before you begin:

  • Daily energy use (kWh/day): Check your electricity bill for monthly kWh and divide by 30, or add up the wattage of each appliance times hours used.
  • Peak sun hours (PSH): The average number of hours per day when solar irradiance equals 1,000 W/m². This varies by location and season (e.g., Phoenix ~6, Seattle ~3.5).
  • Days of autonomy: How many consecutive overcast days you want to survive without solar input (usually 1–3 for off-grid, 0 for grid-tied with net metering).
  • Depth of discharge (DoD): The percentage of battery capacity you safely use. Lithium-ion allows 80–90%, lead-acid only 50%.
  • System efficiency: Losses from wiring, inverter, and temperature, typically 75–85%.
  • Battery voltage: Usually 12V, 24V, or 48V for off-grid systems; grid-tied systems use high-voltage batteries.

How to Calculate Battery Size (Step-by-Step)

Battery capacity is the most critical and most misunderstood number. Here is the exact method:

  1. Determine your daily load in watt-hours (Wh). Example: 5 kWh/day = 5,000 Wh.
  2. Multiply by days of autonomy: 5,000 Wh × 2 days = 10,000 Wh.
  3. Divide by depth of discharge: 10,000 Wh ÷ 0.8 (for lithium) = 12,500 Wh.
  4. Divide by system voltage to get amp-hours: 12,500 Wh ÷ 48V = 260 Ah.

So a 48V battery bank of 260 Ah (about 12.5 kWh) would cover 2 days of 5 kWh usage with 80% DoD. For lead-acid, the same calculation gives 10,000 ÷ 0.5 = 20,000 Wh, or 417 Ah at 48V.

How to Calculate Solar Array Size

Solar array sizing starts with your daily energy need and divides by the sun available:

  1. Take your daily load: 5,000 Wh.
  2. Divide by peak sun hours: 5,000 ÷ 5 PSH = 1,000 W.
  3. Divide by system efficiency (assume 0.8): 1,000 ÷ 0.8 = 1,250 W.
  4. Divide by panel wattage to get panel count: 1,250 ÷ 400 W = 3.125, so you need 4 panels.

In a location with only 3 PSH, the same 5 kWh/day would need 5,000 ÷ 3 = 1,667 W, then ÷0.8 = 2,083 W, or about 6 panels of 400W. Always round up to the next whole panel.

Grid-Tied vs. Off-Grid: Different Calculators

There is a huge difference between sizing for grid-tied and off-grid systems, and many online tools mix them up.

Grid-tied systems typically don’t need batteries at all (unless you want backup). The calculator focuses on offsetting your annual electricity use. You size the array to produce as much as you consume over the year, but you can use the grid as your battery. Net metering lets you bank excess daytime production for nighttime use. Battery backup sizing is separate and usually covers only critical loads (refrigerator, lights, internet) for a few hours.

Off-grid systems must be self-sufficient. The calculator must include days of autonomy, a larger battery bank, and a charge controller sized for the full array current. Off-grid also requires a generator or alternative source for long cloudy periods in most climates. A common mistake is using annual average sun hours, which hides seasonal lows—a system sized for summer will fail in winter.

Common Mistakes and How to Avoid Them

Even with a calculator, people make the same errors repeatedly:

  • Using average sun hours instead of worst-month: For off-grid, use the lowest monthly PSH (e.g., December) to guarantee year-round power.
  • Ignoring inverter efficiency: Inverter losses are 3–10%, so add that to your system efficiency factor.
  • Forgetting temperature effects: Batteries lose capacity in cold weather (lead-acid up to 50% at 0°F). Calculators rarely ask for this, so add a safety margin.
  • Oversizing battery DoD: Using 100% DoD will kill lead-acid batteries in months. Stick to 50% for lead-acid, 80–90% for lithium.
  • Mixing AC and DC loads: Some loads run directly off DC (like RV lights), which skip inverter losses. Keep them separate in the calculator.

Real-World Example: A Tiny Home

Let’s size a system for a tiny home in Austin, Texas (PSH ~4.5). Daily usage: 3.5 kWh from a fridge (1.5), laptop (0.3), lights (0.2), water pump (0.5), and TV (1.0). Off-grid with 2 days of autonomy, lithium battery (DoD 80%), system efficiency 80%.

Battery: 3,500 Wh × 2 ÷ 0.8 = 8,750 Wh. At 48V, that’s 182 Ah. A 48V 200Ah lithium battery (9.6 kWh) works.

Solar: 3,500 Wh ÷ 4.5 PSH = 778 W. ÷0.8 = 972 W. So a 1,000 W array (3 panels of 340W) covers it. But because December PSH in Austin is about 3.2, you’d need 3,500 ÷ 3.2 = 1,094 W, ÷0.8 = 1,367 W, so 4 panels of 340W to be safe.

Costs and Payback Considerations

Calculators often give you system size, but you also need to estimate cost. As of 2024, residential solar panels cost roughly $2.50–$3.50 per watt installed, so a 5 kW system runs $12,500–$17,500 before incentives. Batteries add $7,000–$15,000 for a 10 kWh lithium unit installed. The federal solar tax credit (30% in the US) applies to both panels and batteries if they are charged by solar. Payback depends on your electricity rate and net metering policy; a typical grid-tied system pays back in 6–10 years, while off-grid systems rarely pay back financially—they are for independence or remote locations.

Frequently Asked Questions

How many solar panels do I need for 30 kWh per day? With 5 peak sun hours and 80% efficiency, you need 30,000 ÷ 5 = 6,000 W, ÷0.8 = 7,500 W. Divide by panel wattage (e.g., 400W) gives 18.75, so 19 panels. In a 3 PSH location, you’d need 30,000 ÷ 3 = 10,000 W, ÷0.8 = 12,500 W, or 32 panels.

What size battery do I need for a 5 kW solar system? It depends on your loads, not the solar size. A 5 kW system might produce 25 kWh/day, but if you use only 10 kWh at night, you need a battery that covers that. For 1 day of autonomy, 10 kWh at 80% DoD means 12.5 kWh battery.

Can I use my electric bill to calculate solar needs? Yes, but only for grid-tied. Your bill shows monthly kWh; divide by 30 for daily average. For off-grid, you must estimate appliance usage because your bill reflects grid usage, not your actual needs if you go off-grid.

Should I use a 12V, 24V, or 48V battery system? For systems under 1.5 kW, 12V is fine. For 1.5–5 kW, 24V. Above 5 kW, use 48V to keep current low and wire sizes manageable. Higher voltage also reduces losses in long runs.

Do I need a battery if I have net metering? No, net metering lets you use the grid as your battery. However, if you want backup during outages, a battery is needed. Some utilities are changing net metering policies, so check your local rules.

How accurate are online solar calculators? They are only as good as your inputs. Most use average data and ignore temperature, shading, and seasonal variation. Use them as a starting point, then consult a professional installer for a site-specific design. Always add a 10–20% safety margin.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.