Energy

PG&E Rate Comparer

What would one household's electricity actually cost on each PG&E plan? A rate model built on real hourly usage, with every rate cited, that now runs in the browser on anyone's own file.

$178a year
Saved by moving the sample household to E-TOU-D from E-TOU-C, the plan it is on today.
Role
Solo project
Year
2026
Source
Green Button usage, PG&E and MCE tariffs
Built with
Python, pandas, Pyodide
Status
Sample report ↗
PG&E rate comparison report for a synthetic sample household
Plate I. The comparison report, run on a synthetic sample household.

§1 · Why I built it

I built this to learn the energy business from the inside of my own bill. What mattered most wasn't which plan came out cheapest. It was how little the customer decides. MCE chooses where my power comes from, PG&E delivers it, and the City of Richmond adds its taxes on top. Even the choice of rate plan leaves little room to save by changing how or when you use power. The tool makes that system visible: one household's real usage, priced line by line, with every rate cited.

§2 · How it works

  1. Parse. Reads PG&E's Green Button exports, the hourly usage file any customer can download, and handles their quirks: daylight saving gaps, overlapping files and estimated reads.
  2. Price. Prices a full year under E-TOU-C, E-TOU-D and E-1, plus E-ELEC as a labeled what-if. Every rate lives in a data file with its source and effective date.
  3. Check. Reconciles the model against 20 real bills before trusting it.
  4. Ask what-ifs. Balcony solar scenarios, and whether to stay with MCE or return to PG&E for generation.
  5. Run it on your own file. The same Python engine runs in a web page through Pyodide. Drop in a Green Button export and the report is computed in that browser tab. The file is never uploaded, and the public sample runs on a synthetic household built from NREL ResStock data.

§3 · Call every number what it is

Every figure in the report carries a label for how it was derived.

  1. Verified. Every input is cited and checked against a real bill.
  2. Modeled. Computed from cited rates, not yet checked against a bill.
  3. Inferred. Estimated from the data, and never used as a rate.
  4. Not determinable. Said out loud instead of guessed.

Anything short of verified tells the reader what would verify it.

§4 · Sample result

For the sample household, E-TOU-D comes out about $178 a year cheaper than E-TOU-C, the plan it is on today.

Table 1. Modeled annual cost for the synthetic sample household at current rates. E-ELEC is a what-if: it requires a qualifying technology the household doesn't have.
PlanAnnual costvs E-TOU-C
E-TOU-C$4,031.95—
E-TOU-D$3,853.46−$178.49
E-1$4,106.35+$74.40
E-ELEC (what-if)$3,701.10−$330.85

§5 · What I learned

The biggest surprise was who supplies my power. Most of the electricity I use comes from MCE, a provider that barely comes up when people complain about PG&E. I have no case against MCE. What surprised me is that a system can be built so the customer never sees who is behind most of their power.

Letting other households run the same analysis came next, and it now works: the engine runs on their own file without it leaving their device. Opening it to the public and widening it across PG&E's territory are the next steps. I'm also testing a theory about balcony solar. Credits for power sent back to the grid have fallen so far that it may make more sense to offset what you use than to export a surplus. A small, cheap panel aimed at one appliance could beat rooftop solar and the loan that often comes with it.