Kilowatt Cost API

A free API for electricity rate data

Look up rate schedules, time-of-use periods, and estimate monthly costs — all from publicly filed utility tariffs.

$ Rate Schedules

Query residential, commercial, and industrial rate schedules by jurisdiction. Get base charges, energy charges, demand charges, and tiered pricing.

CategorySchedules
ResidentialRS RSTC RE RETC ES RT
Small General ServiceSGS SGSTC
Large General ServiceLGS
IndustrialI
Optional / TOUOPT-V

Time-of-Use Periods

Find out the current TOU period (on-peak, off-peak, shoulder) for any schedule. Includes season detection, holiday handling, and daily profile breakdowns.

SchedulePeriods
Residential TOUOn-Peak · Off-Peak · Super Off-Peak
Business TOUOn-Peak · Shoulder · Off-Peak

Cost Calculator

Estimate monthly electricity cost given a schedule and kWh usage. Mandatory riders are applied automatically. Optionally include state & local taxes for a full bill estimate. Returns a detailed line-item breakdown with subtotal, taxes, and total.

+ Riders & Surcharges

14 mandatory riders (FC, EE, CPRE, BPM, CEPS, STS, STS2, and more) applied automatically per-kWh by category. 25 optional riders including solar (RSC, NM, NMB), green energy programs, and economic development incentives.

Tax Estimation

Estimate state and local taxes across all Duke Energy service territories. Supports NC, SC, IN, FL, OH, and KY — including state sales tax, gross receipts tax, per-kWh excise tax, and municipal/county-level local taxes for 50+ municipalities.

StateState TaxLocal Tax
NC3% salesFranchise up to 3.09%
SC6% salesLocal option 1–2%
IN7% sales
FL2.5% gross receiptsPublic service up to 10%
OH$0.00465/kWh excise
KY6% salesFranchise ~3%

Supported Jurisdictions

Currently supporting all six Duke Energy service territories across the southeastern and midwestern United States.

CodeJurisdictionStates
DECDuke Energy CarolinasNC, SC
DEPDuke Energy ProgressNC, SC
DEIDuke Energy IndianaIN
DEFDuke Energy FloridaFL
DEODuke Energy OhioOH
DEKDuke Energy KentuckyKY

Example API Call

See what the API returns. Click an endpoint to view request and response examples.

GET /rates GET /tou/now GET /rates/taxes POST /calculate/cost
Request
curl "https://api.kwcost.com/rates/DEC/residential/RS" \ -H "Authorization: Bearer <token>"
Response
{ "jurisdiction": "DEC", "category": "residential", "schedule": "RS", "name": "Residential Service", "charges": { "basic_facility_charge": { "amount": 14.00, "unit": "$/month" }, "energy": { "amount": 0.117845, "unit": "$/kWh" } } }

Disclaimer: This site is not affiliated with, endorsed by, or connected to Duke Energy Corporation in any way. Rate data is sourced from publicly available tariff filings and is provided on an as-is basis. While we strive for accuracy, this information may contain errors or be out of date. Do not rely on this data for billing purposes.