HomeGuidesAPI ReferenceChangelog
Log In
Guides

Turn Bills into kWh

Estimate energy usage from electricity bills using Bill Solve in the On-Demand Cost Calculator API.

Use Bill Solve when you know a customer’s bill total but need to estimate the electricity usage behind it.

Estimate usage from bill cost

A common challenge when analyzing potential projects is determining how much electricity a home or business consumes without access to meter data or reliable usage numbers. Most customers know what they pay for electricity, but they may not know how that translates into kWh.

Bill Solve in the On-Demand Cost Calculator estimates a customer's energy usage for a single billing period using only the total cost of their bill. If your customer knows their annual electricity cost, Bill Solve can also estimate their annual kWh consumption.

The On-Demand Cost Calculator supports these Bill Solve calculations.

How Bill Solve works

Bill Solve estimates kWh usage by working backward from total bill amounts. It applies the correct tariff rates and structures for the specified billing period to determine how much energy consumption (kWh) would be required to generate the given bill total.

While Bill Solve offers both monthly and annual estimation options, we recommend using the monthly option with exact billing dates for maximum precision. The annual option requires assumptions about how a customer's usage is distributed throughout the year, which can introduce additional uncertainty.

What Bill Solve does well

Bill Solve is designed to work best with straightforward electricity tariffs, particularly those with fixed rate structures.

Supports standard tiered tariffs

  • Works effectively when a tariff has clearly defined, fixed kWh tiers (e.g., 0–500 kWh, 501–1000 kWh, etc.)
  • Best suited for cases where energy charges are the primary bill component and don't fluctuate due to demand-based adjustments

Handles Time-of-Use (TOU) rates

  • Can estimate kWh distribution across fixed TOU windows (e.g., Off-Peak: 10 PM – 6 AM, On-Peak: 2 PM – 7 PM)
  • Ideal when TOU rates are the primary driver of bill variation and demand-based components are minimal

Accounts for basic fixed fees and simple demand charges

  • Handles fixed monthly fees and basic demand charges that don't influence energy tier breakpoints
  • Works best when demand charges follow a fixed structure and don't introduce historical dependencies

When Bill Solve may not be a good fit

While Bill Solve is an excellent tool for estimating usage under most standard tariff structures, it may not provide accurate results for tariffs with complex, demand-based, or historical pricing rules.

Tariffs with demand-dependent tiering

  • If the kWh tier structure changes based on a customer's peak demand history, Bill Solve cannot correctly allocate usage across those tiers
  • Example: A tariff where the second tier starts at 80% of the customer's highest demand in the past 12 months—Bill Solve doesn't track historical demand, so it cannot determine the correct tier placement

Complex demand charges that influence kWh allocation

  • Some tariffs adjust kWh rates based on measured demand (e.g., higher per-kWh pricing for high-demand customers)
  • Bill Solve assumes a standard energy rate structure and doesn't model demand-based rate shifts

Ratchet-based pricing or dynamic tiering

  • If a tariff includes historical peak demand ratchets (e.g., where past demand affects current pricing), Bill Solve doesn't retain past demand values and may misplace consumption into incorrect rate categories

When to use Bill Solve vs. alternative methods

Use Bill Solve if your tariff has clear, fixed kWh tiers and TOU periods, and you need an approximate usage estimate.

Consider alternative methods if your tariff includes demand-based pricing, historical ratchets, or shifting tier structures.

If you're unsure whether Bill Solve is a good fit for your use case, contact our team for guidance. If a Bill Solve request failed, include the calculation requestId.

Run a monthly Bill Solve request

Use the monthly option for a customer with the following bill details:

  1. Residential customer in Southern California Edison territory on the "D" tariff (masterTariffId 447)
  2. Actual bill of $54.71 for the period November 25, 2015, to December 28, 2015

To solve for this customer's monthly consumption value, make the following call to the On-Demand Cost Calculator:

POST /rest/v1/ondemand/calculate
{  
  "fromDateTime": "2015-11-25",  
  "toDateTime": "2015-12-28",  
  "masterTariffId": 447,  
  "billingPeriod": "true",  
  "propertyInputs": [  
    {  
      "fromDateTime": "2015-11-25",  
      "toDateTime": "2015-12-28",  
      "keyName": "total",  
      "dataValue": "54.71",  
      "unit": "cost"  
    },  
    {  
      "fromDateTime": "2015-11-25",  
      "toDateTime": "2015-12-28",  
      "keyName": "baselineType",  
      "dataValue": "typicalElectricity"  
    }  
  ]  
}

Review the request inputs below. For full documentation, see the On-Demand Cost Calculator.

Important parameters

  1. Before this call, use the customer's ZIP code to determine their current tariff. In this example, the customer is on SCE's "D" tariff (masterTariffId 447).
  2. Set the calculation date range with fromDateTime and toDateTime to 2015-11-25 and 2015-12-28, respectively. For the most accurate results, use the actual dates from the bill.
  3. Set billingPeriod to true to include monthly charges, if any, in the calculation.
  4. Add two entries to the propertyInputs array. For the first entry, send a total property with a dataValue of 54.71, the customer's cost for the billing period. Set unit to cost to indicate dollars instead of kWh or kW.
  5. Use the second entry to set the initial consumption estimate from Arcadia's database of typical consumption patterns rather than choosing a specific value. The typical profile provides a starting point closer to the customer's actual usage, reducing iterations and response times. Its fine-grained hourly data also improves accuracy for time-of-use (TOU) customers.

Review the monthly result

Run the configured request. The response includes these results:

{  
  "status": "success",  
  "count": 1,  
  "type": "CalculatedCost",  
  "results": [  
    {  
      "masterTariffId": 447,  
      "tariffName": "Domestic",  
      "totalCost": 54.97,  
      "fromDateTime": "2015-11-25T00:00:00-08:00",  
      "toDateTime": "2015-12-28T00:00:00-08:00",  
      "currency": "USD",  
      "summary": {  
        "subTotalCost": 54.97,
        "taxCost": 0,  
        "totalCost": 54.97,  
        "adjustedTotalCost": 55.07,  
        "kWh": 352.25,  
        "kW": 0.72  
      }  
      ...
    }
  ]
}

The calculator estimates approximately 352 kWh for the 25 November – 28 December billing period. Use the following request to calculate the cost from that usage estimate:

POST /rest/v1/ondemand/calculate
{  
  "fromDateTime": "2015-11-25",  
  "toDateTime": "2015-12-28",  
  "billingPeriod": "true",  
  "propertyInputs": [  
    {  
      "fromDateTime": "2015-11-25",  
      "toDateTime": "2015-12-28",  
      "keyName": "consumption",  
      "dataValue": "352"  
    }  
  ]  
}

The results are:

{  
  "status": "success",  
  "count": 1,  
  "type": "CalculatedCost",  
  "results": [  
    {  
      "masterTariffId": 447,  
      "tariffName": "Domestic",  
      "totalCost": 54.92,  
      "fromDateTime": "2015-11-25T00:00:00-08:00",  
      "toDateTime": "2015-12-28T00:00:00-08:00",  
      "currency": "USD",  
      "summary": {  
        "subTotalCost": 54.92,  
        "taxCost": 0,  
        "totalCost": 54.92,  
        "adjustedTotalCost": 55.02,  
        "kWh": 352,  
        "kW": 0  
      }  
      ...
    }
  ]
}

That's how a monthly Bill Solve request works. But what if you want to determine consumption based on a year's electricity cost?

Run an annual Bill Solve request

Use the annual option for a customer with the following cost estimate:

  1. Residential customer in Baltimore Gas & Electric's territory on the "R" tariff (masterTariffId 674)
  2. Estimated annual cost of $1,700 for the period October 15, 2016, to October 15, 2017

To solve for this customer's annual consumption value, make the following call:

POST /rest/v1/ondemand/calculate
{  
  "fromDateTime": "2016-10-15",  
  "toDateTime": "2017-10-15",  
  "masterTariffId": 674,  
  "billingPeriod": "false",  
  "propertyInputs": [  
    {  
      "fromDateTime": "2016-10-15",  
      "toDateTime": "2017-10-15",  
      "keyName": "total",  
      "dataValue": "1700",  
      "unit": "cost"  
    },  
    {  
      "fromDateTime": "2016-10-15",  
      "toDateTime": "2017-10-15",  
      "keyName": "baselineType",  
      "dataValue": "typicalElectricity"  
    }  
  ]  
}

Important parameters

  1. Use the customer's ZIP code to determine their tariff. In this example, the customer is on BGE's "R" tariff (masterTariffId 674).
  2. Set the billing period with fromDateTime and toDateTime to 2016-10-15 and 2017-10-15, respectively. As with monthly Bill Solve, use the day of the month from the bill to improve precision.
  3. Set billingPeriod to false because this calculation spans multiple billing periods. This matters for tariffs with fixed monthly charges.
  4. Add two entries to the propertyInputs array. For the first entry, send a total property with a dataValue of 1700, the customer's $1,700 cost for the billing period. Set unit to cost to indicate dollars instead of kWh or kW.
  5. Use the second entry to set the initial consumption estimate from Arcadia's database of typical consumption patterns rather than choosing a specific value. The typical profile provides a starting point closer to the customer's actual usage, reducing iterations and response times. Its fine-grained hourly data also improves accuracy for time-of-use (TOU) customers.

Review the annual result

Run the configured request. The response includes these results:

{  
  "status": "success",  
  "count": 1,  
  "type": "CalculatedCost",  
  "results": [  
    {  
      "masterTariffId": 674,  
      "tariffName": "Residential",  
      "totalCost": 1702.21,  
      "fromDateTime": "2016-10-15T00:00:00-04:00",  
      "toDateTime": "2017-10-15T00:00:00-04:00",  
      "currency": "USD",  
      "summary": {  
        "subTotalCost": 1702.21,  
        "taxCost": 0,  
        "totalCost": 1702.21,  
        "adjustedTotalCost": 1702.21,  
        "kWh": 11108.53,  
        "kW": 3.75  
      }  
      ...
    }
  ]
}

The calculator estimates approximately 11,109 kWh for the year starting in mid-October 2016. Use the following request to calculate the cost from that usage estimate:

POST /rest/v1/ondemand/calculate
{  
  "fromDateTime": "2016-10-15",  
  "toDateTime": "2017-10-15",  
  "masterTariffId": 674,  
  "billingPeriod": "false",  
  "propertyInputs": [  
    {  
      "fromDateTime": "2016-10-15",  
      "toDateTime": "2017-10-15",  
      "keyName": "consumption",  
      "dataValue": "11109"  
    }  
  ]  
}

The results are:

{  
  "status": "success",  
  "count": 1,  
  "type": "CalculatedCost",  
  "results": [  
    {  
      "masterTariffId": 674,  
      "tariffName": "Residential",  
      "totalCost": 1708.23,  
      "fromDateTime": "2016-10-15T00:00:00-04:00",  
      "toDateTime": "2017-10-15T00:00:00-04:00",  
      "currency": "USD",  
      "summary": {  
        "subTotalCost": 1708.23,  
        "taxCost": 0,  
        "totalCost": 1708.23,  
        "adjustedTotalCost": 1708.23,  
        "kWh": 11109,  
        "kW": 0  
      }  
      ...
    }
  ]
}

Calculating usage from a single bill with exact billing dates usually yields more precise results than an annual calculation.

Related guides


Did this page help you?