Rooftop Solar Calculator Vietnam
Estimate rooftop solar output by province (EVN PVout 2026), bill savings on EVN tariffs, surplus sales up to 50 % (Decree 243/2026), payback, NPV and IRR.
Result
Press “Run” to see the result.
Give the province (34 provinces; old pre-2025 names are mapped), the size (kwp, or roof_m2 at 5.5 m² per kWp) and the consumption (monthly_kwh as one number or 12 values, or monthly_bill for households). Monthly generation uses EVN’s theoretical PVout coefficients for 2026 (kWh/kWp per month for each province, the values used by law to cap surplus sales), with an orientation factor.
Self-consumption is the part of generation used during the day (daytime_share, default 35 % of consumption for households, 65 % for businesses). Bill savings come from the vn-electricity engine (5-tier household tariff from 1 November 2026, VAT included; business savings at the normal-hour rate). Surplus is sold up to 50 % of the theoretical output (Decree 58/2025 Article 14 as amended by Decree 243/2026) at the previous year’s average market energy price, 844.8 đ/kWh for 2026 (surplus_price to override).
With cost (or cost_per_kwp; otherwise an assumed 11 million đ/kWp is flagged) the result gives payback, NPV (discount_percent, default 8) and IRR over years (default 25) with degradation and O&M, plus the notification or registration procedure for the size and connection.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-solar-roi" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"province":"Hà Nội","kwp":5,"monthly_kwh":500,"cost":60000000}'const res = await fetch('https://apibox.io.vn/v1/vn-solar-roi', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"province": "Hà Nội",
"kwp": 5,
"monthly_kwh": 500,
"cost": 60000000
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-solar-roi",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"province": "Hà Nội", "kwp": 5, "monthly_kwh": 500, "cost": 60000000},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-solar-roi');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"province":"Hà Nội","kwp":5,"monthly_kwh":500,"cost":60000000}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
How accurate is the output?
It uses EVN’s province-level theoretical PVout; a real site can differ by ±10–15 % with shading, tilt and equipment.
How much surplus can I sell?
Up to 50 % of the theoretical monthly output (PVout × kWp) by agreement with the buyer; until 31 December 2030 more is allowed where the grid can take it.
Do I need a permit?
Low-voltage systems from 1 kW need an online notice to the commune People’s Committee at least 10 working days before installation; medium-voltage systems selling surplus need a registration certificate.