All-in-One Home Energy Calculator
Calculate your daily electricity usage, solar system size, inverter capacity and monthly cost instantly.
Daily Power Consumption
| Appliance | Watts | Hours | kWh |
|---|---|---|---|
| 0 |
Solar System Size
Inverter & Battery Sizing
Electricity Cost Estimator
let totalEnergy = 0;
function addRow() { let table = document.getElementById("powerTable"); let row = table.insertRow();
row.innerHTML = `
`; }
function calculateEnergy() { let powers = document.querySelectorAll(".power"); let hours = document.querySelectorAll(".hours"); let kwhCells = document.querySelectorAll(".kwh");
totalEnergy = 0;
for (let i = 0; i < powers.length; i++) { let p = parseFloat(powers[i].value) || 0; let h = parseFloat(hours[i].value) || 0; let energy = (p * h) / 1000; kwhCells[i].innerText = energy.toFixed(2); totalEnergy += energy; } document.getElementById("energyResult").innerText = "Total Daily Consumption: " + totalEnergy.toFixed(2) + " kWh"; } function calculateSolar() { let sun = parseFloat(document.getElementById("sunHours").value) || 5; let solarSize = totalEnergy / sun; document.getElementById("solarResult").innerText = "Recommended Solar Size: " + solarSize.toFixed(2) + " kW"; } function calculateBattery() { let backup = parseFloat(document.getElementById("backupHours").value) || 5; let battery = totalEnergy * backup; document.getElementById("batteryResult").innerText = "Battery Capacity Needed: " + battery.toFixed(2) + " kWh"; } function calculateCost() { let tariff = parseFloat(document.getElementById("tariff").value) || 70; let monthly = totalEnergy * 30 * tariff; document.getElementById("costResult").innerText = "Estimated Monthly Cost: ₦" + monthly.toFixed(2); }