Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Solar Panel Calculator (How Many Panels and How Much Roof Space from System Size, Yearly kWh or Roof Area)

Choose what to start from, then enter the target size (or yearly kWh or roof area) and the rated power and size of one panel. The panel power and size are on the spec sheet or the quote.

The number of panels needed is rounded up (enough to reach the target), and the number that fits on a roof is rounded down (what actually fits). A blank roof usage share is treated as 80%. Enter the yearly output per kW to also see an estimate of the yearly output.
Result and graph
Enter a target system size (or yearly kWh or roof area) and the power and size of one panel in the fields on the left and press "Calculate". The number of panels, the area and a panel layout sketch will appear here.

What you can do on this page

  • Enter a target system size (kW) and the rated power of one panel (W), and you get the number of panels needed (rounded up), the total system size (kW) and the total panel area (ft²) on the spot
  • The "from a yearly kWh goal" mode works backward from the yearly output per kW (kWh/kW/yr) to the system size and the number of panels
  • The "from roof area" mode allows for the usable share of the roof (80% by default) and finds how many panels fit (rounded down), the system size and an estimate of the yearly output
  • A sketch of the panels laid out in a grid shows the number of panels and the overall size (width × height)
  • A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
By default, this page uses inches for panel size and square feet (ft²) for area. To use millimeters and square meters, switch "Units" above the calculator to Metric. It calculates only the number of panels, system size and area, not panel prices or installation costs. To find the yearly output itself (from your area's solar radiation, roof direction and tilt), use the "Solar Panel Output Calculator"; for the cost of running an appliance, use the "Electricity Cost Calculator". The real number of panels that fit depends on the roof shape (gable, hip and so on), direction, obstacles, fire code setbacks and roof strength, so treat the result as an estimate and confirm the final count with an installer's site visit.

What is this calculation used for?

Checking the panel count, system size and area on a solar quote

A quote lists something like "400 W modules × 18, system size 7.2 kW". Enter the 7 kW target and the 400 W panel here, and you get the same 18 panels and 7.2 kW, so you can check the numbers behind the quote yourself.
You also see that 18 panels × 21.0 ft² = 378 ft² of panels have to go somewhere on the roof, and that at an 80% usage share you need about 472.5 ft² of roof. Walking into the meeting ready to ask "Does my south-facing roof have that much space?" is the best use of this calculation.

Estimating how many panels fit on your roof from a plan or a satellite image

Say a south-facing roof plane is 400 ft². At an 80% usage share you can use 320 ft², so 21.0 ft² panels give about 15 panels (rounded down). With 400 W panels that is 6.0 kW, and in an area with 1,300 kWh/kW/yr about 7,800 kWh a year.
Use the real roof surface area: take the footprint area seen from above and scale it up for the slope (about 1.12 times for a 6/12 pitch). The real number depends on the roof shape (a rectangle-shaped gable plane or a triangle-shaped hip plane), obstacles such as skylights and vents, fire code setbacks and roof strength, so this is a first estimate before the installer's layout drawing.

Working backward from your yearly electricity use to a system size

Add up 12 months of electric bills. If your home uses 10,800 kWh a year, divide by the yearly output per kW to get the size that makes that much. With 1,300 kWh/kW/yr the target size is about 8.31 kW; with 430 W panels that is 20 panels and 8.6 kW, for an estimated 11,180 kWh a year.
But solar only makes power in the daytime, so you still draw from the grid at night. Whether equal production and use means a near-zero bill depends on your utility's net metering or net billing rules. "Make as much as you use" is a starting point for deciding whether to go a few panels smaller or larger.

Comparing how panel power changes the number of panels and the area

For the same 7 kW target, 250 W panels take 28 panels (about 492.9 ft² in total for 65 in × 39 in panels), 400 W panels take 18 (378 ft²), and 450 W panels take 16. Higher-power panels need fewer panels and less area, so they matter most on small roofs.
On the other hand, reusing older or smaller panels means more panels, more roof area, more racking and more labor. Swapping in the power and size from each spec sheet puts the choices side by side in numbers.

Seeing how many kW fit on a small area such as a shed or carport roof

On a 10 ft × 12 ft shed or small carport roof (120 ft²) at a 90% usage share, you can use 108 ft²; 108 ÷ 21.0 ≈ 5.14, so 5 panels, or 2.0 kW with 400 W panels. You can quickly see how many panels and kW a small roof can hold, which helps when the house roof is full, or for small off-grid projects such as an RV, a cabin or a farm pump.
This is a rough count based on area only. Sheds, carports and pergolas differ from a house roof in strength, mounting, snow and shade, so ask a qualified installer whether panels can really go there.

Formula

Area of one panel (ft²)
Standard notation (the usual math form)
\(a\) \(=\) \(L\) \(\times\) \(W\) \(\div\) \(144\)
In words (symbols replaced with words)
④ \(a\): area of one panel (ft²) \(=\) ① \(L\): length (in) \(\times\) ② \(W\): width (in) \(\div\) ③ 144 (in² to ft²)
The formula in words
① Take the \(L\): length (in)
② multiply it by the \(W\): width (in) to get the area in square inches (in²),
③ divide by 144 to turn it into square feet (ft²),
④ and you get the \(a\): area of one panel (ft²)
Quick example
The area of one panel that is 67.8 in long and 44.6 in wide is
\(a\): area of one panel (ft²) \(=\) length (67.8 in) \(\times\) width (44.6 in) \(\div\) 144
\(67.8 \times 44.6 \div 144 = 3023.88 \div 144 \approx 21.0\)
Key idea
1 ft is 12 in, so 1 ft² is \(12 \times 12 = 144\) in². Spec sheets give panel sizes in inches (or millimeters), while roof area is usually in square feet, so this conversion puts them in the same unit. You can also turn the sides into feet first and then multiply (\(5.65 \times 3.717 \approx 21.0\)). A home solar panel is about 17 to 22 ft² (roughly the size of a door and a half). The size on the spec sheet includes the frame, so you can use it as is. If your spec sheet is in millimeters, switch "Units" to Metric: then the area is length (mm) × width (mm) ÷ 1,000,000 in m².
Panels needed (from a target system size)
Standard notation (the usual math form)
\(N\) \(=\) \(\lceil\) \(P_{t}\) \(\times\) \(1000\) \(\div\) \(p\) \(\rceil\)
In words (symbols replaced with words)
⑤ \(N\): number of panels needed \(=\) ④ \(\lceil\) ① \(P_t\): target system size (kW) \(\times\) ② 1000 (kW to W) \(\div\) ③ \(p\): rated power of one panel (W) \(\rceil\)
The formula in words
① Take the \(P_t\): target system size (kW)
② multiply it by 1000 to turn it into watts (W),
③ divide by the \(p\): rated power of one panel (W) to find how many panels' worth it is,
④ round up to a whole number (the symbol \(\lceil\ \rceil\) means "round up"),
⑤ and you get the \(N\): number of panels needed
Quick example
With a target system size of 7 kW and panels rated at 400 W each, the number of panels needed is
\(N\): panels needed \(=\) \(\lceil\) target size (7 kW) \(\times\) 1000 \(\div\) power of one panel (400 W) \(\rceil\)
\(7 \times 1000 \div 400 = 17.5\)
\(\lceil 17.5 \rceil = 18\)
Key idea
Panels come only in whole numbers, so if the division leaves a decimal, round up. In the example, 17.5 panels becomes 18. With 17 panels the total would be \(17 \times 400 \div 1000 = 6.8\) kW, short of the 7 kW target; with 18 it is \(7.2\) kW, a little above the target. The symbol for this rounding up is \(\lceil\ \rceil\) (the ceiling function). For the same target, higher-power panels mean fewer panels. With 250 W panels it takes \(7000 \div 250 = 28\) panels; with 450 W panels, \(7000 \div 450 \approx 15.6\), so 16 panels. Fewer panels also need less roof area, so high-power panels are the usual choice for small roofs.
System size from a yearly kWh goal
Standard notation (the usual math form)
\(P_{t}\) \(=\) \(E_{t}\) \(\div\) \(Y\)
In words (symbols replaced with words)
③ \(P_t\): target system size (kW) \(=\) ① \(E_t\): yearly kWh goal (kWh/yr) \(\div\) ② \(Y\): yearly output per kW (kWh/kW/yr)
The formula in words
① Take the \(E_t\): yearly kWh goal (kWh/yr)
② divide it by the \(Y\): yearly output per kW (kWh/kW/yr)
③ and you get the \(P_t\): target system size (kW) (then use formula 2 for the number of panels)
Quick example
With a goal of 10,800 kWh a year, a yearly output per kW of 1,300 kWh/kW/yr in your area and 430 W panels, the target size and the number of panels are
\(P_t\): target size (kW) \(=\) yearly goal (10,800 kWh) \(\div\) per kW (1,300 kWh/kW/yr)
\(10800 \div 1300 \approx 8.308\)
\(\lceil 8.308 \times 1000 \div 430 \rceil = \lceil 19.32 \rceil = 20\)
Key idea
The yearly output per kW, \(Y\), is how many kWh 1 kW of panels makes in a year under your location and setup. In much of the US, facing south, it is about 1,200 to 1,600 kWh/kW/yr: lower in cloudy areas or on east and west roofs, higher in the sunny Southwest. To find \(Y\) for your own location, direction and tilt, use the "Solar Panel Output Calculator" page. To finish the example: with 430 W panels, you need 20 panels, the total size is 8.6 kW, and the estimated yearly output is \(8.6 \times 1300 = 11180\) kWh/yr. Solar only makes power in the daytime, so making as much as you use in a year does not always mean a zero electric bill; it depends on how your utility credits the extra power you send to the grid.
Total system size and total panel area
Standard notation (the usual math form)
\(P\) \(=\) \(N\) \(\times\) \(p\) \(\div\) \(1000\)
\(S\) \(=\) \(N\) \(\times\) \(a\)
In words (symbols replaced with words)
④ \(P\): total system size (kW) \(=\) ① \(N\): number of panels \(\times\) ② \(p\): rated power of one panel (W) \(\div\) ③ 1000 (W to kW)
⑦ \(S\): total panel area (ft²) \(=\) ⑤ \(N\): number of panels \(\times\) ⑥ \(a\): area of one panel (ft²)
The formula in words
① Take the \(N\): number of panels
② multiply it by the \(p\): rated power of one panel (W) to get the total power (W),
③ divide by 1000 to turn it into kW,
④ and you get the \(P\): total system size (kW)
⑤ Then take the \(N\): same number of panels
⑥ multiply it by the \(a\): area of one panel (ft²)
⑦ and you get the \(S\): total panel area (ft²)
Quick example
For 18 panels rated at 400 W (21.0 ft² each), the total system size and total area are
\(P\): total size (kW) \(=\) panels (18) \(\times\) power of one panel (400 W) \(\div\) 1000
\(S\): total area (ft²) \(=\) panels (18) \(\times\) area of one panel (21.0 ft²)
\(18 \times 400 \div 1000 = 7.2\)
\(18 \times 21.0 = 378\)
Key idea
After rounding up, the total system size \(P\) is equal to or a little above the target \(P_t\) (7.2 kW against a 7 kW target in the example). The system size on a quote is this \(P\). The total area \(S\) is just the area of the panels themselves; the roof needs more space than this. There are gaps between panels, setbacks from the roof edges (gutters, ridge and rakes, often required by fire codes), and limits on how panels can be turned, so the roof cannot be fully covered. This calculator allows for that with the roof usage share \(u\) (%) (80% by default) and shows the roof area needed as \(S \div (u \div 100)\). In the example, \(378 \div 0.8 = 472.5\) ft².
Panels that fit on a roof area
Standard notation (the usual math form)
\(N\) \(=\) \(\lfloor\) \(A\) \(\times\) \(\dfrac{u}{100}\) \(\div\) \(a\) \(\rfloor\)
In words (symbols replaced with words)
⑤ \(N\): number of panels that fit \(=\) ④ \(\lfloor\) ① \(A\): usable roof area (ft²) \(\times\) ② \(u\): roof usage share (%) ÷ 100 \(\div\) ③ \(a\): area of one panel (ft²) \(\rfloor\)
The formula in words
① Take the \(A\): usable roof area (ft²)
② multiply it by the \(u\): roof usage share (%) divided by 100 to get the area you can really use,
③ divide by the \(a\): area of one panel (ft²) to find how many panels' worth of space it is,
④ round down to a whole number (the symbol \(\lfloor\ \rfloor\) means "round down"),
⑤ and you get the \(N\): number of panels that fit
Quick example
For a roof with 400 ft² of usable area, a usage share of 80% and panels of 21.0 ft² each, the number of panels that fit is
\(N\): panels that fit \(=\) \(\lfloor\) usable roof area (400 ft²) \(\times\) usage share (80%) ÷ 100 \(\div\) area of one panel (21.0 ft²) \(\rfloor\)
\(400 \times \dfrac{80}{100} = 320\)
\(320 \div 21.0 \approx 15.24\)
\(\lfloor 15.24 \rfloor = 15\)
Key idea
When you start from the roof, you want the number that actually fits, so you round down, the opposite of formula 2. Even with space for 15.24 panels, the 16th panel does not fit, so the answer is 15. The symbol for rounding down is \(\lfloor\ \rfloor\) (the floor function). With 400 W panels, the 15 panels make \(15 \times 400 \div 1000 = 6.0\) kW, and in an area with 1,300 kWh/kW/yr that is about 7,800 kWh a year. This is a rough count based on area only. The real number depends on the roof shape (how many rows and columns fit on a rectangular roof plane), panel orientation (portrait or landscape), obstacles such as skylights, vents and chimneys, fire code setbacks, and roof strength. The 80% usage share is a rough guide: a wide gable roof plane may allow 85% to 90%, while the triangle-shaped planes of a hip roof may allow only 60% to 70%. Confirm the final number with an installer's site visit and layout drawing.
Estimated yearly output
Standard notation (the usual math form)
\(E\) \(=\) \(P\) \(\times\) \(Y\)
In words (symbols replaced with words)
③ \(E\): estimated yearly output (kWh/yr) \(=\) ① \(P\): total system size (kW) \(\times\) ② \(Y\): yearly output per kW (kWh/kW/yr)
The formula in words
① Take the \(P\): total system size (kW)
② multiply it by the \(Y\): yearly output per kW (kWh/kW/yr)
③ and you get the \(E\): estimated yearly output (kWh/yr)
Quick example
For a total size of 7.2 kW (18 panels × 400 W) in an area with a yearly output per kW of 1,300 kWh/kW/yr, the estimated yearly output is
\(E\): yearly output (kWh/yr) \(=\) total size (7.2 kW) \(\times\) per kW (1,300 kWh/kW/yr)
\(7.2 \times 1300 = 9360\)
Key idea
This is formula 3 in reverse. Rounding makes the number of panels a whole number, so the total size \(P\) is not exactly the target, and the output is recalculated with the final number of panels. When you start from a yearly goal, the result is a little above the goal; when you start from the roof area, it shows roughly how many kWh a year that roof can make. \(Y\) packs the location, direction, tilt and losses into one number, so the real output changes with weather, shade and panel aging. If you leave this field blank, the yearly output is not shown and only the number of panels, size and area are calculated.
The number of solar panels you need is "target size (kW) × 1000 ÷ power of one panel (W)", rounded up. The total size is "number of panels × power of one panel ÷ 1000", and the panel area is "number of panels × area of one panel (length in × width in ÷ 144, in ft²)". Starting from the roof, "usable roof area × usage share ÷ area of one panel", rounded down, gives the number that fits. Starting from a yearly kWh goal, first turn it into a target size with "yearly goal ÷ yearly output per kW", then use the same formulas.

Symbols and terms

Symbols

\(L\) L The length of one panel (in), the longer side of the outer size on the spec sheet. From the first letter of "length".
\(W\) W The width of one panel (in), the shorter side of the outer size on the spec sheet. From the first letter of "width".
\(a\) a The area of one panel (ft²). From the first letter of "area"; it is lowercase to tell it apart from the total area \(S\) and the roof area \(A\).
\(p\) lowercase p The rated power of one panel (W). From the first letter of "power"; it is lowercase to tell it apart from the total system size \(P\).
\(P_t\) P sub t The target system size (kW). The small \(t\) stands for target.
\(N\) N The number of panels - "panels needed" (rounded up) when starting from a target, "panels that fit" (rounded down) when starting from roof area. From the first letter of "number".
\(P\) P The total system size (kW), recalculated with the rounded number of panels. It is the system size on a quote.
\(S\) S The total panel area (ft²), the number of panels \(N\) times the area of one panel \(a\). The roof needs more space than this. \(S\) is a common symbol for area (said to come from the Latin superficies, "surface").
\(A\) A The usable roof area (ft²) - the roof surface where panels can go. From the first letter of "area"; it is uppercase to tell it apart from the area of one panel \(a\).
\(u\) u The roof usage share (%), the share of the usable roof area that panels can actually cover. The default in this calculator is 80%. From the first letter of "utilization".
\(E_t\) E sub t The yearly kWh goal (kWh/yr). \(E\) is for energy, with a small \(t\) for target.
\(Y\) Y The yearly output per kW (kWh/kW/yr), a guide to how much a system makes in a given location and setup. From the first letter of "yield".
\(E\) E The estimated yearly output (kWh/yr) with the final number of panels. From the first letter of "energy".
\(\lceil\ \rceil\) ceiling The symbol for rounding the number inside up to a whole number (the ceiling function). \(\lceil 17.5 \rceil = 18\), \(\lceil 15 \rceil = 15\) (a whole number stays as it is). It is used to find the number of panels needed.
\(\lfloor\ \rfloor\) floor The symbol for rounding the number inside down to a whole number (the floor function), as in \(\lfloor 15.24 \rfloor = 15\). It is used to find how many panels fit on a roof.

Terms

solar panel (module) A product made by joining dozens of small solar cells into one panel. Spec sheets often call it a "module". Each panel on a home roof is one module, and "one panel" in this calculator means one module.
rated power The power (W) one panel makes under Standard Test Conditions (irradiance of 1 kW/m², panel temperature of 25°C (77°F) and so on). The "400 W" on a spec sheet is this value. On a real roof the conditions are different, so the panel runs below it most of the time. The panel count uses this value.
system size The basic number for the size of a solar system, the rated power of all panels added up (kW), as in "a 7 kW system". With 400 W panels, 18 panels make 7.2 kW.
round up To drop the decimal part and go to the next whole number (17.5 → 18). Panels come in whole numbers, so the number needed to reach a target is rounded up. In math this is written with the ceiling function \(\lceil\ \rceil\).
round down To drop the decimal part and keep the whole number (15.24 → 15). The number of panels on a roof must not overflow it, so it is rounded down. In math this is written with the floor function \(\lfloor\ \rfloor\).
yearly output per kW How much 1 kW of panels makes in a year (kWh/kW/yr). It packs the local solar radiation, direction, tilt and losses into one number. In much of the US, facing south, it is about 1,200 to 1,600. You can find the value for your own setup on the "Solar Panel Output Calculator" page. It is also called specific yield.
roof usage share The share (%) of the usable roof area that panels can actually cover. Gaps between panels, setbacks from the roof edges and orientation limits keep it below 100%; the default in this calculator is 80%. It is higher for rectangle-shaped roof planes and lower for triangle-shaped ones.
setback The space left between the panels and the roof edges (eaves, ridge and rakes) or gutters. It keeps wind from lifting the panels, lets rain drain and leaves room for maintenance. In many areas, fire codes also require clear paths, often about 18 to 36 inches wide, so firefighters can work on the roof (check your local rules). Setbacks are one of the main reasons the usage share is below 100%.
footprint area The area of a roof seen from directly above (for example, on a satellite image or a floor plan). A roof is sloped, so this is smaller than the real surface area of the roof.
roof surface area The area of the sloped roof surface itself. It is larger than the footprint area; for a 6/12 roof pitch (about 27°), it is about 1.12 times the footprint. Enter the roof surface area in "Usable roof area" on this page.
racking The metal rails and mounts that hold the panels to the roof. They attach to the roof with brackets that suit the roofing material, and the panels sit on top. More panels mean longer racking, more weight and more work.
roof load How much weight a roof can carry. A home solar panel weighs about 40 to 50 lb, and with racking the array adds roughly 3 lb per square foot to the roof. Older homes or some roof structures may need fewer panels, so ask the installer whether the roof can carry the number you calculated.

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.

Area and units of area (Grades 3–6)
  • Knowing that the area of a rectangle = length × width
  • Knowing that when the length unit changes, the area unit changes by the square, as in 1 ft = 12 in and 1 ft² = 144 in²
Rounding up and rounding down (Grade 4)
  • Being able to turn a number into a whole number to fit the purpose, as in 17.5 → 18 panels (rounding up) and 15.24 → 15 panels (rounding down)
  • Knowing why: round up to avoid "not enough", and round down to avoid "does not fit"
Multiplying and dividing decimals (Grades 5–6)
  • Being able to calculate \(7000 \div 400 = 17.5\) and \(18 \times 21.0 = 378\)
  • Knowing that dividing by a number less than 1, as in \(378 \div 0.8\), makes the answer larger
Percents (Grades 6–7)
  • Being able to turn a percent into a decimal, as in "80% is 0.8 times the whole"
  • Knowing that "whole × percent = part" (usable roof area × usage share = area you can use)
Power and energy (middle school physical science)
  • Knowing that k (kilo) means 1,000 times, so \(1\,\mathrm{kW} = 1000\,\mathrm{W}\)
  • Telling apart power (W, kW), how fast electricity is made, and energy (kWh), the total amount made (system size in kW × yearly output per kW = yearly output in kWh)

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the area of one panel
Length (in) 67.8
Width (in) 44.6
Area of one panel (ft²) =B1*B2/144
Table to find the panels needed (from a target system size)
Target system size (kW) 7
Panel rated power (W) 400
Panels before rounding up =B1*1000/B2
Panels needed =ROUNDUP(ROUND(B1*1000/B2,10),0)
Table to find the system size from a yearly kWh goal
Yearly kWh goal (kWh/yr) 10800
Yearly output per kW (kWh/kW/yr) 1300
Panel rated power (W) 430
Target system size (kW) =B1/B2
Panels needed =ROUNDUP(ROUND(B4*1000/B3,10),0)
Table to find the total system size and total panel area
Number of panels 18
Panel rated power (W) 400
Area of one panel (ft²) 21.0
Roof usage share (%) 80
Total system size (kW) =B1*B2/1000
Total panel area (ft²) =B1*B3
Roof area needed at the usage share (ft²) =B6/(B4/100)
Table to find the panels that fit on a roof area
Usable roof area (ft²) 400
Roof usage share (%) 80
Area of one panel (ft²) 21.0
Area you can use (ft²) =B1*B2/100
Panels before rounding down =B4/B3
Panels that fit =ROUNDDOWN(ROUND(B4/B3,10),0)
Table to find the estimated yearly output
Total system size (kW) 7.2
Yearly output per kW (kWh/kW/yr) 1300
Estimated yearly output (kWh/yr) =B1*B2
After pasting, the upper cells in column B are your inputs and the green formula cells are calculated automatically.
The first table is the area of a 67.8 in × 44.6 in panel, and B3 shows about 20.9992 (ft²). The second table is the 7 kW, 400 W example: B3 shows 17.5, and B4, which uses the ROUNDUP function, shows 18 (panels).
The third table is the 10,800 kWh, 1,300 kWh/kW/yr, 430 W example: B4 shows about 8.308 (kW) and B5 shows 20 (panels). The fourth table is the 18 panels × 400 W, 21.0 ft² example: B5 shows 7.2 (kW), B6 shows 378 (ft²) and B7 shows 472.5 (the roof area needed at an 80% usage share).
The fifth table is the 400 ft² roof at 80%: B4 shows 320 (ft²), B5 about 15.24, and B6, which uses the ROUNDDOWN function, shows 15 (panels). The sixth table is 7.2 kW × 1,300 kWh/kW/yr, and B3 shows 9360 (kWh/yr). Just replace the numbers in column B with your own panel and roof values.
The ROUND(…,10) (round to 10 decimal places) inside ROUNDUP and ROUNDDOWN is there because a division that should come out even (for example, 4.8 kW ÷ 400 W = exactly 12 panels) can become 12.000000000000002 from a tiny error inside the computer, which would give one panel too many (or too few).

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the area of one panel
Length (in) 67.8
Width (in) 44.6
Area of one panel (ft²) =B1*B2/144
Table to find the panels needed (from a target system size)
Target system size (kW) 7
Panel rated power (W) 400
Panels before rounding up =B1*1000/B2
Panels needed =ROUNDUP(ROUND(B1*1000/B2,10),0)
Table to find the system size from a yearly kWh goal
Yearly kWh goal (kWh/yr) 10800
Yearly output per kW (kWh/kW/yr) 1300
Panel rated power (W) 430
Target system size (kW) =B1/B2
Panels needed =ROUNDUP(ROUND(B4*1000/B3,10),0)
Table to find the total system size and total panel area
Number of panels 18
Panel rated power (W) 400
Area of one panel (ft²) 21.0
Roof usage share (%) 80
Total system size (kW) =B1*B2/1000
Total panel area (ft²) =B1*B3
Roof area needed at the usage share (ft²) =B6/(B4/100)
Table to find the panels that fit on a roof area
Usable roof area (ft²) 400
Roof usage share (%) 80
Area of one panel (ft²) 21.0
Area you can use (ft²) =B1*B2/100
Panels before rounding down =B4/B3
Panels that fit =ROUNDDOWN(ROUND(B4/B3,10),0)
Table to find the estimated yearly output
Total system size (kW) 7.2
Yearly output per kW (kWh/kW/yr) 1300
Estimated yearly output (kWh/yr) =B1*B2
Google Sheets has ROUNDUP and ROUNDDOWN functions with the same names, so the same formulas as in Excel work as is. Copy the whole table, paste it into cell A1, and replace column B with your own panel and roof values.

How to calculate it in Python

import math
from decimal import Decimal

# Numbers are kept as Decimal (base-10 decimals). With float, a division that should come out even,
# such as 4.03*1000/130, can give 31.000000000000004, and rounding up would add one extra panel
mode = "capacity"                    # "capacity" = from target size / "energy" = from yearly kWh goal / "area" = from roof area
target_kw = Decimal("7")             # target system size P_t (kW). Used when mode="capacity"
target_kwh = Decimal("10800")        # yearly kWh goal E_t (kWh/yr). Used when mode="energy"
roof_area_ft2 = Decimal("400")       # usable roof area A (ft2). Used when mode="area"
utilization_percent = Decimal("80")  # roof usage share u (%)
yield_kwh_per_kw = Decimal("1300")   # yearly output per kW Y (kWh/kW/yr). None if unknown
panel_watt = Decimal("400")          # rated power of one panel p (W)
panel_length_in = Decimal("67.8")    # panel length L (in)
panel_width_in = Decimal("44.6")     # panel width W (in)

# Area of one panel a (ft2) = L x W / 144
panel_area_ft2 = panel_length_in * panel_width_in / Decimal("144")

if mode == "area":
    # From roof area: panels that fit = floor(A x u/100 / a) (round down)
    usable_area_ft2 = roof_area_ft2 * utilization_percent / Decimal("100")
    panel_count = math.floor(usable_area_ft2 / panel_area_ft2)
else:
    if mode == "energy":
        # Turn the yearly kWh goal into a target size: P_t = E_t / Y
        target_kw = target_kwh / yield_kwh_per_kw
    # Panels needed = ceil(P_t x 1000 / p) (round up)
    panel_count = math.ceil(target_kw * Decimal("1000") / panel_watt)

total_kw = panel_count * panel_watt / Decimal("1000")   # total system size P (kW)
total_area_ft2 = panel_count * panel_area_ft2           # total panel area S (ft2)

print(f"Area of one panel: {panel_area_ft2:.4f} ft2")
print(f"Panels: {panel_count}, total size: {total_kw:.3f} kW, total area: {total_area_ft2:.2f} ft2")
if mode != "area":
    # Roof area needed at the usage share (not shown for mode="area", where it is the area you entered)
    roof_needed_ft2 = total_area_ft2 / (utilization_percent / Decimal("100"))
    print(f"Roof area needed at {utilization_percent}% usage: {roof_needed_ft2:.1f} ft2")
if yield_kwh_per_kw is not None:
    print(f"Estimated yearly output: {total_kw * yield_kwh_per_kw:.0f} kWh/yr")
Runs with the standard library only. Change mode and the numbers at the top (inside Decimal("…")) to your own conditions and run it. With the example values (7 kW target, 400 W, 67.8 in × 44.6 in), it prints 18 panels, 7.2 kW, 377.99 ft², a roof area of 472.5 ft² and a yearly output of 9360 kWh. Rounding up uses math.ceil and rounding down uses math.floor. The numbers are Decimal instead of ordinary floats so that a division that should come out even does not become something like "12.000000000000002" and add one extra panel when rounded up.

How to write it in LaTeX and other math languages (copy and paste)

Area of one panel (ft²)
a = L × W ÷ 144
a = \frac{L \times W}{144}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>a</mi>
    <mo>=</mo>
    <mfrac>
      <mrow><mi>L</mi><mo>&#xD7;</mo><mi>W</mi></mrow>
      <mn>144</mn>
    </mfrac>
  </mrow>
</math>
a = (L * W) / 144
panelArea = length*width/144
a := L*W/144;
a = L*W/144;
a = (L×W)/144
Panels needed (from a target system size)
N = ⌈Pₜ × 1000 ÷ p⌉
N = \left\lceil \frac{P_t \times 1000}{p} \right\rceil
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>N</mi>
    <mo>=</mo>
    <mo>&#x2308;</mo>
    <mfrac>
      <mrow><msub><mi>P</mi><mi>t</mi></msub><mo>&#xD7;</mo><mn>1000</mn></mrow>
      <mi>p</mi>
    </mfrac>
    <mo>&#x2309;</mo>
  </mrow>
</math>
N = |~ (P_t * 1000) / p ~|
panelCount = Ceiling[targetKw*1000/panelW]
N := ceil(P_t*1000/p);
N = ceil(P_t*1000/p);
N = ⌈(P_t×1000)/p⌉
System size from a yearly kWh goal
Pₜ = Eₜ ÷ Y
P_t = \frac{E_t}{Y}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>P</mi><mi>t</mi></msub>
    <mo>=</mo>
    <mfrac>
      <msub><mi>E</mi><mi>t</mi></msub>
      <mi>Y</mi>
    </mfrac>
  </mrow>
</math>
P_t = E_t / Y
targetKw = targetKwh/yieldPerKw
P_t := E_t/Y;
P_t = E_t/Y;
P_t = E_t/Y
Total system size and total panel area
P = N × p ÷ 1000,  S = N × a
P = \frac{N \times p}{1000}, \quad S = N \times a
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>P</mi>
    <mo>=</mo>
    <mfrac>
      <mrow><mi>N</mi><mo>&#xD7;</mo><mi>p</mi></mrow>
      <mn>1000</mn>
    </mfrac>
    <mo>,</mo>
    <mspace width="1em"/>
    <mi>S</mi>
    <mo>=</mo>
    <mi>N</mi>
    <mo>&#xD7;</mo>
    <mi>a</mi>
  </mrow>
</math>
P = (N * p) / 1000, S = N * a
totalKw = panelCount*panelW/1000; totalArea = panelCount*panelArea
P := N*p/1000; S := N*a;
P = N*p/1000; S = N*a;
P = (N×p)/1000, S = N×a
Panels that fit on a roof area
N = ⌊A × u ÷ 100 ÷ a⌋
N = \left\lfloor \frac{A \times \frac{u}{100}}{a} \right\rfloor
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>N</mi>
    <mo>=</mo>
    <mo>&#x230A;</mo>
    <mfrac>
      <mrow><mi>A</mi><mo>&#xD7;</mo><mfrac><mi>u</mi><mn>100</mn></mfrac></mrow>
      <mi>a</mi>
    </mfrac>
    <mo>&#x230B;</mo>
  </mrow>
</math>
N = |__ (A * u / 100) / a __|
panelCount = Floor[roofArea*util/100/panelArea]
N := floor(A*u/100/a);
N = floor(A*u/100/a);
N = ⌊(A×u/100)/a⌋
Estimated yearly output
E = P × Y
E = P \times Y
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>E</mi>
    <mo>=</mo>
    <mi>P</mi>
    <mo>&#xD7;</mo>
    <mi>Y</mi>
  </mrow>
</math>
E = P * Y
yearlyKwh = totalKw*yieldPerKw
E := P*Y;
E = P*Y;
E = P×Y

How to have ChatGPT  do the calculation

You are a solar design assistant. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

The target system size is 7 kW, the rated power of one panel is 400 W, and one panel is 67.8 in long and 44.6 in wide. The roof usage share is 80% and the yearly output per kW is 1,300 kWh/kW/yr.
Find the number of panels needed by rounding up "target size (kW) × 1000 ÷ power of one panel (W)" to a whole number (math.ceil).
Find each of the following:
1. The area of one panel (ft²) = length (in) × width (in) ÷ 144
2. The number of panels needed and the total system size (kW) with that number
3. The total panel area (ft²) and the roof area needed at an 80% usage share (ft²)
4. The estimated yearly output (kWh/yr) = total size × yearly output per kW

Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.