Mathematics and Methods
In this document
A companion to the essay. Evidence cutoff: November 17, 2026. The numerical examples in this document are deliberately small teaching systems. They do not estimate reliability, tariffs, or prices in any real region. The script and results reproduce their arithmetic.
1. Start with a clock and a boundary
An electricity statistic has at least five coordinates: a quantity, a unit, a place, a time interval, and a status. “One gigawatt” is incomplete. It could be a generator's nameplate, an hourly average, a substation's rating, a customer's requested maximum, a system's simultaneous peak, or capacity accredited for resource adequacy. The arithmetic can be correct while the comparison is invalid. This is the central measurement problem behind the debate about AI and power.
Power is a rate of energy transfer. A gigawatt maintained for one hour supplies a gigawatt-hour. Maintained for a calendar year of 8,760 hours, it supplies 8.76 terawatt-hours. In a leap year, the literal calendar has 8,784 hours; the 8.76 conversion is the conventional 365-day scale ruler used here. A facility with a 1 GW maximum import and an 80% annual load factor uses 7.008 TWh in that 365-day illustration. This does not tell us its contribution to the highest regional hour. The same annual energy can come from a constant 800 MW, 1 GW for 80% of hours, or a more complicated profile. Only an hourly or finer series resolves the coincidence.
For a system of customers i, hourly demand is the sum of each customer's demand:
Its peak is . The peak of the sum can never exceed the sum of the individual peaks:
The gap between the two sides is diversity. It is why adding every customer's connection request usually overstates the simultaneous system peak. But diversity is not a free discount. A data center that runs continuously contributes nearly its full operating import to whichever hour becomes the peak, while a facility with a firm, tested curtailment right can contribute less in designated scarcity hours. The contract and the actual response determine that reduction.
The boundary matters as much as the clock. U.S. annual data-center electricity is a national energy estimate. PJM's summer peak is a regional demand forecast. NERC's ten-year growth figure is an aggregation of assessment-area peak forecasts across North America. ERCOT's request inventory is a stock of proposed connections. These cannot be summed as if each were a new operating U.S. load. Berkeley Lab's 2026 data-center report, PJM's 2026 forecast, and NERC's 2025 LTRA use different boundaries and evidence classes.
A 1 GW campus as a measuring instrument
Consider a hypothetical campus that requests 1 GW. If it imports 1 GW every hour, it consumes 8.76 TWh in a 365-day year and adds 1 GW to the system peak if it is operating then. Now suppose a verified service agreement limits import to 700 MW for four hours each day and permits 1 GW for the other twenty. Annual imports become
The energy difference is only 0.438 TWh, or 5% of the constant case. Yet if the four curtailed hours reliably cover the region's risk hours, the campus's peak contribution can be 0.7 GW rather than 1 GW. If the actual risk migrates to other hours, that value must be recalculated. This illustration is not a claim that any operator will credit 300 MW of flexibility without testing, telemetry, notice and enforcement.
If a company says it is “bringing its own power,” the same boundary test applies. An onsite plant might cover normal energy while still relying on the grid for startup, reserve service, fault support, or backup when the plant is down. A PPA signed somewhere else may finance renewable generation while leaving the campus's particular hourly import and congestion unchanged. For planning, record gross facility load, onsite generation, net grid import by hour, export rights, and the credible contingency when onsite supply fails. Annual net energy alone hides the worst hour.
2. Demand forecasts are statements about realization
The Berkeley Lab June 2026 update gives 649 TWh in its 2030 U.S. reference case, with compounded uncertainty cases of 521 and 843 TWh. The IEA's April 2026 assessment gives a U.S. base path of 426 TWh in 2030. The 223 TWh difference is 25.46 GW of year-round average power. It is not a 25.46 GW difference in peak demand, and the two forecasts are not two draws from one probability distribution. The forecast reconciliation uses their published IT electricity and aggregate PUE values to make a limited, order-dependent accounting bridge. Their equipment assumptions, utilization, facility scope and regional allocation still need a matched input audit before a pooled estimate would mean anything.
The basic forecasting identity is simple, with location and timing retained:
In practice those terms are dependent. A constrained connection date can delay a building; a chip shortage can reduce the first phase; a customer with multiple site applications may complete only one. Summing requested MW and multiplying by a single historical realization percentage loses these dependencies. It also imports cohort bias: applications filed in a boom may not mature like those filed during an earlier, slower market.
For a public ledger, each request should have a cohort date and a stage. Useful stages are initial inquiry, verified site control, completed impact study, signed cost agreement, construction start, authorized energization, and measured operating load. We need entry and exit dates, withdrawals, capacity revisions, duplicates where they can be identified, and a denominator for every conversion rate. The 2026 ERCOT large-load status report shows why: most of its March 2030 request inventory had not submitted studies. Its preliminary 2032 peak then prompted ERCOT to say realization would likely be lower than the unadjusted method implied. The correct response is to publish the stages and calibration history, not silently discard demand or treat every request as certain.
A forecast comparison must preserve its vintage. If a 2025 forecast projected a 2030 peak and a 2026 forecast revised that number, we have learned about a model revision, not yet about the 2030 outcome. A forecast error can be computed only when the target period has passed:
For a set of regions or years, both signed bias and absolute error matter. A model that sometimes overshoots by 20 GW and sometimes undershoots by 20 GW has near-zero mean error and poor operational calibration. It should also be tested by project stage and horizon. An honest 2035 range should widen with uncertain campuses and policy, rather than borrowing the confidence of a one-year weather forecast.
3. Supply, reserves, and the hour of risk
Installed capacity is not the same as available generation in a risk hour. For unit j, a stylized hourly supply term is , where is capability and is a state between zero and one after outages, weather, fuel, maintenance and other constraints. For wind and solar, the output pattern is weather dependent. For storage, it also depends on state of charge and the opportunities to recharge. A regional resource balance must then respect transmission: electricity on the wrong side of a binding interface is not automatically deliverable to a load pocket.
The familiar planning reserve margin compares accredited capacity C with forecast peak demand D, subject to each operator's exact definition:
It is a screening and procurement statistic, not a probability of outages. Operators use different accreditation and import rules, seasons, and resource adequacy constructs. For example, SPP's 2026 summer report explicitly distinguishes its base planning reserve margin from the newer accredited-capacity reserve margin. Blending the two would produce a fictitious margin. MISO's 2026 auction reported different seasonal targets and clearing margins. A single national percentage would erase the institutional and physical differences.
Capacity accreditation asks how much a resource changes reliability at the risky hours, given the rest of the portfolio. The conceptual effective load carrying capability of a resource is the extra demand the system can serve at the same chosen reliability level after adding that resource. It is not a permanent physical constant. Its value depends on weather correlations, the rest of the fleet, storage duration, and the chosen reliability criterion. When a system already has much midday solar, the next solar unit may do less for an evening shortage than the first did. Storage may shift that value, but its contribution can fall if many batteries exhaust together during a multi-day event. PJM's 2026 ELCC explanation and Manual 21B describe its hourly, portfolio-dependent method.
An illustrative battery makes the duration issue concrete. A 1 GW battery with 4 GWh of usable energy can discharge at rated power for four hours before losses and minimum state-of-charge restrictions. A fifth hour of 1 GW deficit is uncovered unless the battery recharges or another resource takes over. With assumed 90% round-trip efficiency, delivering 4 GWh ultimately requires about 4.444 GWh of charging energy over the full cycle. The input electricity must be available at the charging hours, and the line must be able to deliver it. “Four-hour battery” is not shorthand for 1 GW of capacity in every hour of a prolonged weather event.
Why an auction shortfall is not a blackout forecast
PJM's 2028/29 Base Residual Auction report lists 138.3178 GW cleared in the RPM auction and 10.8638 GW under Fixed Resource Requirement plans. Together they total 149.1816 GW, 6.8314 GW below the 156.013 GW reliability requirement. This is an arithmetic difference between accredited capacity and a modeled requirement under a specific demand vintage and market design. PJM explicitly says it should not be read as inability to serve load. Reliability risk rises before a deterministic shortage appears. New capacity can arrive, load may differ, and emergency tools exist; adverse weather and outages can also make the risk worse. A credible forecast would evaluate the distribution of shortfalls across simulated conditions rather than predict a blackout date from 6.8314 GW alone.
The counterexample is instructive. CAISO's 2026 summer assessment found a modeled 2.547 GW surplus above its one-in-ten-year supply-shortage criterion for the RA-eligible fleet, after adding resources. Its probabilistic model used 500 full-year hourly scenarios. The result is about modeled need for emergency measures, not a promise of zero customer outages or immunity to every wildfire, heat wave, or transmission failure. Putting CAISO's 2.547 GW beside PJM's 6.8314 GW as if both used identical requirements would be misleading. The useful comparison is methodological: both operators translate a resource portfolio and a weather-sensitive load into a risk statement, and both state what the result does not cover.
4. Reliability mathematics: probability, duration and severity
Let be demand in hour t under scenario ω, and be deliverable supply after outages, fuel and imports. Define the shortfall
If each scenario represents a full year and scenarios have normalized weights , then expected unserved energy is
Its units are MWh per year. It describes average modeled shortage energy before any distinction between emergency actions and actual firm-load shedding in the operator's implementation. Read the study's definition.
Expected loss-of-load hours counts every hour with a modeled shortfall:
Loss-of-load expectation in days per year counts a day d once if any hour in that day has a modeled shortfall:
One long event can contribute many hours but one or two days. One day can contain several separate events. Therefore 0.1 days/year is not interchangeable with 2.4 hours/year. A draft NERC reliability-assessment methods document lays out these metrics, and the 2016 NERC glossary explicitly warns against the conversion. The draft document is evidence about proposed methods, not a final standard.
Neither an average frequency nor an average MWh alone describes the tail. One system can have frequent one-hour, small shortages; another can have rare multi-day failures with far greater social cost. Useful reporting includes event duration, maximum MW shortfall, EUE, the distribution of yearly unserved energy, and scenario descriptions. Tail metrics such as a high percentile and the mean beyond that percentile can help, but their meaning depends on the scenario set and weights. A model that omits a common fuel-system failure or regional heat dome cannot discover it by running more Monte Carlo years.
Scenario weights are a substantive assumption. A set of 500 weather years does not, by itself, mean that every plausible future climate outcome is represented or that each should receive equal weight. Historical weather can preserve physically realistic correlation between a heat wave, demand, wind, solar and neighboring imports, but historical records may omit a more extreme future event. Synthetic weather can broaden the tail but risks generating combinations that are not meteorologically coherent. Resource outage probabilities must be conditional on the same weather where evidence supports it. A fuel shortage that affects several plants belongs in a common event or a shared fuel constraint, not in several independent dice rolls. The published result should state the weather years, weighting, outage data, fuel assumptions and any event class excluded. Without those details, a precise LOLE decimal is difficult to audit.
Here is an intentionally crude exact example. There are two 1 GW generators, each independently unavailable in a chosen risk hour with 10% probability, and demand is 1.5 GW. With both online, there is no shortage. Exactly one outage occurs with probability and leaves 0.5 GW unserved. Both out occurs with probability 0.01 and leaves 1.5 GW unserved. The shortfall probability is 0.19, and EUE for that one-hour experiment is
These are exaggerated teaching assumptions, not empirical U.S. forced-outage rates or a regional reliability estimate.
Now suppose a separate common event has a 5% probability of disabling both units. Conditional on no common event, retain the independent model. The risk-hour shortfall probability becomes , and expected unserved energy becomes
The 5% common-event assumption raises EUE by two-thirds despite a modest change in the chance of any shortage. This is why weather-correlated plant outages, common fuel dependencies and transmission contingencies need explicit modeling. It also shows why a headline reserve margin can miss the severity of a shared failure. The reproducible script enumerates the same probabilities without a simulation seed.
Operational reliability adds dimensions this adequacy toy leaves out. Frequency response, inertia or inverter controls, voltage, protection, fault ride-through and restoration can fail even when annual energy and accredited capacity look sufficient. A large computational load may disconnect or ramp in ways that matter within seconds. NERC's 2026 computational-load alert treats this as a distinct operational problem. A day-ahead adequacy model does not certify a campus's behavior during a transmission fault.
5. Dispatch and the price of a bottleneck
At a simplified level, economic dispatch chooses outputs to solve
subject to energy balance, generator limits, and transmission limits. The marginal value of one more MWh of demand at a node is a locational marginal price, or LMP, in an idealized linear problem. Actual market prices also reflect losses, reserve and security constraints, unit commitment, offer rules and time resolution. FERC's energy-market explainer identifies energy, losses and congestion as the three LMP components.
Take a lossless two-node system for one hour. At node A, generation costs $40/MWh and can supply up to 2 GW. At node B, generation costs $100/MWh and can supply up to 2 GW. Demand is 0.5 GW at A and 1 GW at B. The A-to-B line carries at most 0.5 GW. Dispatch 1 GW at A: 0.5 serves A, 0.5 crosses the line. Dispatch 0.5 GW at B. Hourly variable cost is
An extra small MWh at A costs $40; at B, with the line full, it costs $100. The price difference is $60/MWh. In this lossless, unconstrained-offer toy, the line's congestion rent is for the hour. This is a settlement identity in the toy, not the owner's realized profit or the revenue requirement of a real line.
If the line could carry 1 GW, A would produce 1.5 GW, B zero, and variable cost would fall to $60,000 for that hour. The avoided $30,000 is the maximum one-hour value in this specific dispatch and load state. A real transmission investment must be evaluated over many years of hours, outages, fuel prices, construction cost, losses, network interactions and who pays. Multiplying $30,000 by 8,760 without evidence that the constraint binds every hour would be an error. A larger line can also move congestion rather than erase it.
Add the hypothetical 1 GW campus at B while keeping the 0.5 GW line. A produces 1 GW and B 1.5 GW; variable cost rises to $190,000 in this toy hour. The extra campus MWh are valued at B's $100/MWh marginal cost. Its physical arrival at B differs from locating it at A, where unused cheap generation exists. The location matters even if both campuses sign identical annual renewable contracts. This is the mathematical reason to study a particular node before saying a region has “spare power.”
There are limits to this two-node diagram. AC power flows distribute across parallel paths, losses are nonlinear, and a contingency can change the binding interface. Markets co-optimize other services and follow tariff-specific settlement rules. The toy is useful because its constraints are visible; it is not a substitute for a utility impact study. The script checks balance and line limits in each shown case.
6. Storage and flexible load as intertemporal constraints
For storage, a minimal state equation is
bounded by and charge and discharge power limits, where the η terms are charging and discharging efficiencies. A round-trip efficiency assumption is . The battery cannot discharge energy it has not stored. If the grid expects it to cover a second evening, the model must include the first evening's discharge and the intervening recharge window. When many batteries charge in the same low-price hours, they change those hours' load and possibly the congestion that made charging cheap.
Flexible load has analogous constraints. A campus might postpone a training job, but many inference or cooling loads have service requirements. A simple model can impose , a maximum of four curtailed hours per day, advance notice, and a rebound energy requirement. If the deferred computing must run later, reduced peak power does not necessarily reduce annual energy. It may even raise electricity use if shifting harms equipment efficiency or uses backup generation. If flexibility is called during a widespread event, its performance must be statistically tested rather than assumed from an ordinary test day.
The economic value of flexibility is a sum across the hours and constraints it actually changes: avoided energy and congestion costs, avoided capacity procurement, possibly deferred network upgrades, less the cost to the customer and any rebound. Those values cannot generally be added independently. A single curtailed MW may simultaneously reduce a peak requirement and relieve a local line, but paying two full credits for the same counterfactual can overstate benefit. The correct comparison is between feasible systems with and without the contractual flexibility, using the same demand and supply assumptions.
7. The customer's bill is a separate model
Wholesale LMP is not a household retail rate. A bill may include generation, transmission, distribution, public-purpose charges, taxes and fixed charges, allocated under state and federal rules. Even if a large load raises the system's variable cost in a specific hour, it might also fund an upgrade, support a new plant, or make existing assets better utilized. Conversely, an upgrade built for a campus that never appears can leave fixed costs for others. The incidence depends on tariffs, cost-causation rules, collateral, minimum commitments and actual load. FERC's cost-transparency material separates federal transmission questions from state retail allocation; it does not provide a universal cents-per-kWh answer.
One can at least make capital arithmetic explicit. For an upfront amount , annual discount rate , and annual payments, a level capital-recovery factor is
It converts an assumed present cost into equal nominal annual payments under a simplified financing model. At and , the factor is about 9.439%. A hypothetical $500 million upgrade therefore implies $47.20 million a year before operations, taxes, regulatory treatment, financing structure, salvage value or shared benefits. Spread across 7.008 billion kWh of annual use for a 1 GW customer at 80% load factor, this isolated payment is about 0.673 cents/kWh. At one-fifth the realized load, it is about 3.367 cents/kWh. These are denominators, not proposed tariffs.
The main essay uses a different, explicitly assumed 8% annual factor, producing $40 million and 0.571 or 2.854 cents/kWh. It is a round sensitivity case, not a 7% interest-rate calculation. Keeping those cases distinct matters: a reader should be able to see whether a change in the answer came from the cost, term, discount rate, utilization or allocation. A detailed rate model would carry separate accounts for dedicated assets, network assets and existing system costs; classify which are avoidable if the campus cancels; apply any contribution in aid of construction; and distribute any residual under the governing tariff and rate case. The public documents are not sufficient to compute one national household effect.
The counterfactual deserves equal care. A utility might build a line regardless of the campus to serve homes and improve resilience. Charging the campus the whole cost can be as distortive as charging households for a purely dedicated connection. Conversely, a vague claim of broad benefit is not proof that a specialized substation should be socialized. A transparent analysis would compare a no-campus plan and a campus plan, retain common projects in both, and allocate incremental cost alongside incremental benefits. It would stress test cancellation, delayed arrival, partial occupancy and early departure, then show who owes the residual under each case.
8. What a credible regional model would require
The American Grid Stress Atlas deliberately stops short of estimating regional LOLE or a connection date. Public operator materials are rich but nonuniform. A defensible 2027, 2030 or 2035 simulation would need hourly load shapes by zone; annual demand vintage and project-stage data; unit-level availability, fuel dependencies and weather correlation; renewable profiles from common weather years; battery state of charge and charging rules; transfer capability under contingencies; distribution or substation constraints for the proposed site; imports constrained consistently across neighbors; and tariff-specific flexibility and resource accreditation. It would also need to say which customer interruptions are counted as a supply-shortage event and which arise from local distribution failure.
Model validation should start with reproducible historical periods. Hold out a few extreme weather years and test whether the model reproduces the ordering of stressed hours, generator unavailability, imports, storage use and emergency actions. It should then be rerun under forecast vintages known before those years, to assess genuine predictive value. Parameter sensitivity should include load realization, common-cause outages, renewable weather, fuel supply, resource delay and transmission completion. A result that changes sign with a modest assumption should be shown as such. Operator methods are changing, so a replication must record software, source files and tariff effective dates. None of that can be inferred from an annual GW table.
The appropriate use of the atlas today is triage. It identifies what each operator has measured, where margins or requests warrant deeper attention, and where a public number is missing. It does not rank regions by a synthetic risk score. Its 1 GW campus exercise is a set of standardized questions and transparent arithmetic, not a site-selection recommendation. The gap between the simple model and a real interconnection study is itself an important finding: the grid limit is local, time dependent, contractual and uncertain. A national slogan cannot locate it.
9. The network model beneath a connection decision
An annual capacity balance treats a region as one electrical point. A connection study cannot. It must map buses, lines, transformers, generator injections and loads, then test flows after a plausible component fails. In a simple DC approximation, the power on a line depends on the difference in voltage angles at its ends and the line's reactance. The approximation assumes small angle differences, fixed voltage magnitudes and negligible reactive-power effects. It is useful for illustrating congestion and screening many dispatch cases. It cannot certify voltage stability, fault duty, protection behavior or the dynamic response of a large computing load. Those require more detailed power-flow and dynamic models and appropriate data from the transmission owner.
Even a line with unused thermal rating in ordinary operation may have little firm headroom. If another line trips, flows reroute through the remaining network. A planner tests a defined set of contingencies and checks emergency ratings, voltage and stability. The additional campus may be acceptable at its requested maximum in the base case but violate a limit after one transformer outage. A proposed upgrade might solve that contingency while leaving a different one binding. The deliverable capacity of a node is therefore not the sum of unused ratings on lines entering a region. It is the result of a network and contingency study for a specified service product and set of operating assumptions.
This also explains why a regional reserve can coexist with a local shortage. Imagine 10 GW of accredited resources outside a city and a city import interface limited to 5 GW after a credible outage. If city demand is 5.5 GW in the risk hour, aggregate resource adequacy does not make the extra 0.5 GW deliverable. Local generation, storage, flexible load or an interface upgrade may solve it. Conversely, an unconstrained line may allow a region with modest local generation to rely on diverse neighbors. The relevant transfer is itself weather and contingency dependent. The joint winter 2026 review documents the value of emergency transfers and warns that the same elevated limits may not be available in a later event.
The economics of an upgrade need the same network discipline. In the two-node toy, raising the line limit from 500 to 1,000 MW saves $30,000 in the one hour studied. Suppose, purely to illustrate arithmetic, that this exact dispatch condition occurred for 100 hours and no other hours had congestion. The annual variable-cost saving would be $3 million before losses, reliability benefits and construction costs. At 1,000 hours it would be $30 million. The 10-fold difference arises from the duration of the binding condition, not from changing the line's nameplate. A real benefit study uses a multi-year distribution of dispatch, outages and fuel prices, compares feasible networks with and without the project, and records which customers receive the benefits. It must also avoid counting the same avoided shortage once as energy-price savings and again as a separate reliability benefit without a clear accounting rule.
10. Sensitivity and falsification before precision
The easiest way to make a model look impressive is to publish many digits. The harder discipline is to identify which inputs can reverse its conclusion. For the 1 GW campus, at least four assumptions deserve explicit variation. First, its operating profile: a 50% annual connection utilization means 4.38 TWh, while 90% means 7.884 TWh. Second, coincidence: is the campus at 1 GW, 0.7 GW or somewhere else during each region's top risk hours? Third, timing: does the first 200 MW energize in 2027 while the remaining 800 MW waits until 2030, or does the whole project slip? Fourth, flexibility: is 300 MW of curtailment physically possible and contractually enforceable during a multi-day event? An analysis that only varies annual TWh misses the peak and network consequences.
For a fleet of proposed projects, use a stage-based realization matrix rather than one global percentage. Let be the fraction of a cohort at stage s that reaches operation within horizon h. Estimate it only from historical cohorts that had enough time to mature, and show uncertainty intervals and changes over time. A project already energized belongs in a different class from a project that has not submitted a study. Correlated cancellation matters: if financing conditions or chip supply change, many projects can slip together. Likewise, a utility that builds for every request incurs a correlated overbuild risk. An honest scenario set includes both underbuild and overbuild costs.
There are empirical tests available now. Preserve each dated forecast and compare it with actual peak and annual energy when the year ends. Compare project-stage counts with subsequent energization by cohort. Compare planned generator additions with completed commercial operation and actual accreditation. Compare a modeled risk-hour ranking with observed tight hours and emergency actions. Check whether the model would have flagged known cold weather, fuel and import constraints if it had been run before the event. A model that merely fits the event after its assumptions were rewritten is explanation, not validation. Forecast calibration should be published alongside the new forecast, including misses that are politically inconvenient.
The same discipline applies to graphics. A line labeled “2030 demand” must state whether it is a forecast made in 2025, a forecast made in 2026, a request-inclusive preliminary case or a scenario. A map should not shade regions red because their request inventory is large if its legend says “blackout risk.” A price chart should identify nominal or real dollars, year and market. A queue chart must distinguish active capacity, projects with signed interconnection agreements, completed projects and withdrawals. An interactive control should expose assumptions and never silently recompute an operator's published figure. These rules are part of quantitative validity, not decoration.
Reproduction and provenance
Run python3 math_model.py in this directory to regenerate math-results.csv. The script uses only the Python standard library and asserts the key balances and probability identities. Its inputs are in the code and the formulas above. Source-backed regional values are kept in atlas-data.csv with source dates and caveats, separate from illustrative model outputs. The source log contains the primary documents. Neither file contains a hidden calibration that converts these examples into a forecast.