Back to calculator
Home & UtilitiesGenerated accuracy model review: 2026-05-06

Gas vs Electric Appliance Cost Calculator accuracy and testing

This page documents how Calwarden builds trust for this calculator: source notes, regression-style default tests, limitations, assumptions, unit handling, rounding, and visible change history.

Formula source

  • Gas cost = gas units x gas price + gas-only fees. Electric cost = kWh x electricity rate + electric-only fees.

Test cases

Default input regression check

Generated from the checked-in default inputs and calculate function.

Inputs

  • Gas Use: 80 units/yr
  • Gas Price: 1.6 $/unit
  • Gas Extra Fees: 0 $/yr
  • Electric Use: 900 kWh/yr
  • Electricity Rate Preset: eia_us_residential_average
  • Electricity Rate: 0.18 $/kWh
  • Electric Extra Fees: 0 $/yr

Expected outputs

  • Lower Operating Cost: Gas is lower
  • Gas Annual Cost: $128.00
  • Electric Annual Cost: $148.32
  • Annual Difference: $20.32

Known limitations

  • This page documents the checked-in calculator logic and does not certify results for every real-world edge case.
  • Use the result as a planning estimate unless the calculator page states a stricter purpose.

Assumptions

  • All prices, rates, taxes, and usage values are entered by the user.
  • Calculations run locally in your browser and are not stored by Calwarden.
  • This is planning math, not financial, tax, engineering, or legal advice.

Unit handling

  • Gas Use accepts values in units/yr.
  • Gas Price accepts values in $/unit.
  • Gas Extra Fees accepts values in $/yr.
  • Electric Use accepts values in kWh/yr.
  • Electricity Rate Preset accepts one of the configured options.
  • Electricity Rate accepts values in $/kWh.
  • Electric Extra Fees accepts values in $/yr.
  • Gas Annual Cost is displayed as currency.
  • Electric Annual Cost is displayed as currency.
  • Annual Difference is displayed as currency.

Rounding rules

  • Number displays use up to 2 decimal places in the calculator UI.
  • Currency outputs are displayed with standard US dollar formatting.
  • Input precision follows configured step values where provided.

Version history

1.0.0 - 2026-05-06

Generated accuracy and testing page from the current gas-vs-electric-appliance-cost-calculator calculator definition.

Change log

2026-05-06

Published default regression test documentation and metadata fallbacks for Gas vs Electric Appliance Cost Calculator.

Calculator transparency

Accuracy pages are generated from checked-in calculator definitions and can be upgraded with curated review metadata over time.

Use calculator