{"uid":"cap_va26a8cM3NhgdAbNPyW-2","slug":"electrical-calculators-energy-cost-calculator-efd91a1a","name":"Electrical Calculators – Energy Cost Calculator","description":"Energy use in kWh and its cost from a flat rate or tiered blocks, plus an optional demand charge and fixed fee.","url":"https://electrical-calc.x402tookit.com/energy-cost?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["powerKw"],"properties":{"kwh":{"type":"number","description":"Energy in kWh for the period; overrides powerKw x hours x days"},"days":{"type":"number","description":"Number of days in the period (default 30)"},"tiers":{"type":"string","description":"Blocks as size:rate pairs separated by semicolons, e.g. 100:0.10;200:0.15;inf:0.20 (kWh per block : price per kWh)"},"peakKw":{"type":"number","description":"Peak demand in kW for the demand charge (default powerKw)"},"powerKw":{"type":"number","description":"Average running load in kilowatts (or send kwh to override)"},"fixedCharge":{"type":"number","description":"Fixed charge for the period in your currency (default 0)"},"hoursPerDay":{"type":"number","description":"Hours of use per day, 0 to 24 (default 24)"},"flatRatePerKwh":{"type":"number","description":"Price per kWh in your currency (use this or tiers)"},"demandRatePerKw":{"type":"number","description":"Demand charge per kW of peak per period (default 0)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"kwh":{"type":["null","number"]},"asOf":{"type":["null","string"]},"days":{"type":["null","number"]},"blocks":{"type":["array","null"],"items":{"type":"object","properties":{"kwh":{"type":["null","number"]},"cost":{"type":["null","number"]},"ratePerKwh":{"type":["null","number"]}}}},"peakKw":{"type":["null","number"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"averageKw":{"type":["null","number"]},"totalCost":{"type":["null","number"]},"demandCost":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"energyCost":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"fixedCharge":{"type":["null","number"]},"hoursPerDay":{"type":["null","number"]},"unpricedKwh":{"type":["null","number"]},"effectiveRatePerKwh":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8YUg6G6IGhc1Zc69hIahm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates energy consumption in kWh and its monetary cost from flat-rate or tiered block pricing, with optional demand charge and fixed fee.","exampleAgentPrompt":"What will my electricity cost for a 3.5 kW load running 10 hours a day for 30 days, with tiered rates of 100 kWh at $0.10, 200 kWh at $0.15, and anything above at $0.20, plus a $12 fixed charge?","exampleUseCases":[{"title":"Monthly home electricity bill estimate","prompt":"Estimate my monthly electricity bill — my home draws about 2 kW on average, runs 24 hours a day, and my utility charges a flat rate of $0.13 per kWh with a $10 fixed monthly fee."},{"title":"Industrial demand charge calculation","prompt":"Calculate the electricity cost for my factory: 50 kW average load, running 16 hours a day for 30 days, with tiered rates of 5000 kWh at $0.08 then anything above at $0.11, a demand charge of $12 per kW on a 60 kW peak, and a $50 fixed fee."},{"title":"Server rack energy cost check","prompt":"How much will it cost to run my 4 kW server rack continuously for 30 days at a flat rate of $0.15 per kWh?"}],"resultDescription":"Returns total kWh consumed, itemized cost broken down by tier blocks (each with kWh, rate, and cost), demand charge, fixed charge, total cost, average kW, a human-readable summary, verdict, and any warnings or degraded-data flags.","failureModes":["Missing required powerKw parameter returns a validation error","Malformed tiers string format causes a parsing error","Providing both kwh and powerKw may cause ambiguity — kwh takes precedence","Non-numeric values for numeric fields return an error","Negative values for power or rate may produce nonsensical results"],"whenToPreferThis":"Use this endpoint when you need to compute electricity cost for a load over a period — especially when dealing with tiered/block tariffs or demand charges. Prefer it over manual calculation or generic formula tools when you need a structured breakdown by tier block, automatic kWh computation from load parameters, and a human-readable cost summary in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:04.122Z","isFirstParty":false,"canonicalSlug":"electrical-calculators-energy-cost-calculator-efd91a1a"}