Enter both solutions' costs, energy demand and economic parameters to compare discounted total cost of ownership and payback instantly.
Free professional total cost of ownership calculator for off-grid lighting projects. Input the solar solution's initial investment, annual O&M and battery replacement cycle and cost, together with the diesel solution's generator costs, annual energy requirement, fuel consumption rate, fuel price and O&M, then choose a discount rate and service life to compare both solutions' discounted NPV-based TCO and the solar payback period.
Enter the solar system's initial investment (panels, battery, pole, installation) and annual O&M cost.
Set the battery replacement cycle (lithium 5-8 years, lead-acid 2-3 years) and cost per replacement so replacements are discounted into the TCO.
Capture the generator, tank and pole investment, annual energy requirement, diesel consumption rate, fuel price and annual O&M.
Estimate annual fuel spend with C_fuel = E_year × rate × P_fuel, defaulting to a typical 0.079 gal/kWh and US EIA 2026 fuel prices.
Convert every year's expenditure into today's value with your discount rate (5-8% typical) over the chosen life cycle.
Compare total solar vs diesel TCO, read the absolute cost saving and the solar payback period against annual fuel and O&M savings.
| Platform | HTML5 Web App | Android (via WebView) |
| Core Calculation | C_fuel = E_year × 0.079 gal/kWh × P_fuel; TCO = Σ C_t / (1 + r)^t; Payback = C0_solar / (annual fuel savings + annual O&M savings) |
| Solar Initial Investment | USD (0 and up) |
| Annual Solar O&M | USD/year |
| Battery Replacement | Cycle 2 - 10 years (Li 5-8, lead-acid 2-3) | Cost USD/replacement |
| Diesel Initial Investment | USD (0 and up) |
| Annual Energy Requirement | kWh/year (luminaires × W × h/night × 365) |
| Diesel Consumption Rate | 0.066 - 0.092 gal/kWh (typical 0.079) |
| Diesel Fuel Price | USD/gal (US EIA Aug 2026 ≈ $5.26) |
| Discount Rate | 0% - 30% (5% - 8% typical) |
| Service Life | 1+ years (10 - 25 typical) |
| Industry Standards | ISO 15686-5, ASTM E833, NREL / IEA PVPS T12, IPCC Guidelines |
| Output | Solar TCO (USD), diesel TCO (USD), 20-year cost saving (USD), solar payback period (years) |
TCO captures every cost over the system's life cycle — initial investment, annual maintenance, fuel or electricity, and battery replacements — discounted to today's value with a net-present-value formula. Comparing full TCO is fairer than comparing purchase prices alone, because diesel trades a cheap upfront cost for expensive, ongoing fuel.
The calculator multiplies the annual energy requirement by a diesel consumption rate (typically 0.079 gal/kWh, range 0.066-0.092) and the fuel price: C_fuel = E_year × 0.079 × P_fuel. With 8,030 kWh/year and $5.26/gal this equals about $3,337 per year.
Money spent later is worth less than money spent today, so each future payment is divided by (1 + r)^t. Discounting at a realistic rate (e.g. 6%) lets you fairly compare a big solar investment now against diesel's repeated fuel and maintenance spending over 20 years.
E_year must reflect the true duty cycle — e.g. 20 luminaires × 0.1 kW × 11 h/night × 365 days = 8,030 kWh/year. Using 24h × 365 continuous supply instead would inflate diesel fuel cost about 2.2 times and wrongly conclude that "solar is far better." Realistic inputs keep the comparison honest.