# How much did it cost to train GPT-4 and GPT-5?

> OpenAI never published either figure. Outside estimates put GPT-4's final run at $40M to $78M of compute; GPT-5 has a FLOP estimate but no dollar figure.

Source: https://www.nodus-compute.ai/blog/gpt-training-cost/
Build revision: b630a44f0ec196701cb93026739fc6072a856a2d

OpenAI has never published what GPT-4 or GPT-5 cost to train: outside estimates put GPT-4’s final training run at about $40 million to $78 million of compute, Sam Altman has said it cost “more than” $100 million, and no reputable dollar estimate exists for GPT-5. At the NVIDIA H100 rate listed at $2.60/hr on the Nodus [pricing page](https://www.nodus-compute.ai/pricing/), our worked math turns Epoch AI’s compute estimates into about $51 million of GPU-hours for GPT-4 and $161 million for GPT-5, an illustration rather than a quote. Neither figure includes the staff, experiments and failed runs that make up much of a frontier model’s real bill.

## What do public estimates say GPT-4 cost to train?

The credible public numbers for GPT-4 range from $40 million to over $100 million, because each one measures something different. None comes from OpenAI’s own accounts.

|Estimate|Figure|What it covers|
|-|-|-|
|[Epoch AI cost paper](https://arxiv.org/abs/2405.21015)|$40M|Amortized hardware plus energy, final training run|
|[Stanford AI Index 2024](https://hai.stanford.edu/ai-index/2024-ai-index-report)|$78M|Compute for training, priced at historical cloud rates|
|Epoch AI cost paper|$90M|Amortized hardware across the whole development, including experiments|
|Sam Altman, quoted by [WIRED](https://www.wired.com/story/openai-ceo-sam-altman-the-age-of-giant-ai-models-is-already-over/)|More than $100M|Unspecified; a lower bound, not an estimate|
|Epoch AI cost paper|$800M|Cost to buy the hardware used to train GPT-4|

*Sources checked December 6, 2026. All are outside estimates; OpenAI has not published GPT-4’s training cost.*

The spread is mostly method. Epoch AI’s [summary of the paper](https://epoch.ai/blog/how-much-does-it-cost-to-train-frontier-ai-models) says estimates priced at cloud rates, the approach behind the AI Index figure, come out around twice as high on average as its amortized-hardware method. WIRED reports that at an MIT event, Altman was asked if training GPT-4 cost $100 million and replied, “It’s more than that.” He did not say what the figure included.

![Public estimates of GPT-4’s training cost: Epoch AI $40M amortized hardware and energy for the final run, Stanford AI Index $78M of compute, Epoch AI $90M amortized hardware over the whole development, and Sam Altman’s more-than-$100M lower bound.](https://www.nodus-compute.ai/blog-charts/gpt-training-cost/gpt4-estimates.svg) *Every public GPT-4 figure answers a different question, so quote the method along with the number.*

The underlying compute estimate is the more durable number. Epoch AI’s [GPT-4 model page](https://epoch.ai/models/gpt-4-mar-2023) lists 2.1e25 FLOP of training compute, NVIDIA A100 SXM4 40 GB hardware and 95 days of training.

## Is there a public estimate of what GPT-5 cost to train?

No. We could not find a reputable published dollar figure for GPT-5’s training run, so we will not invent one. The closest thing is a compute estimate: Epoch AI’s [GPT-5 model page](https://epoch.ai/models/gpt-5) lists 6.6e25 FLOP and marks the training hardware and time as unknown.

Epoch AI also argues, in [a newsletter analysis](https://epoch.ai/gradient-updates/why-gpt5-used-less-training-compute-than-gpt45-but-gpt6-probably-wont), that GPT-5 likely used less training compute than GPT-4.5. Its reasoning is that OpenAI scaled post-training on a smaller model instead of scaling pre-training. The same piece puts OpenAI’s projected R\&D compute spend at about $5 billion in 2024 and about $9 billion in 2025, based on The Information’s reporting. That spend covers experiments as well as final runs, which is why Epoch says total development cost for GPT-5 was likely higher even if the final run was cheaper.

## How do you turn a FLOP estimate into GPU-hours and dollars?

Divide total FLOP by the useful work one GPU does per hour, then multiply by a rate. This is our own arithmetic, using three stated assumptions:

* Peak: NVIDIA’s [H100 page](https://www.nvidia.com/en-us/data-center/h100/) lists 1,979 teraFLOPS of BF16 for the H100 SXM with sparsity, so dense is 989. The [HGX page](https://www.nvidia.com/en-us/data-center/hgx/) lists 36 petaFLOPS for an 8-GPU B200 board and says dense is half, which gives 2,250 teraFLOPS per B200.
* Utilization: 30% model FLOPs utilization (MFU), with 40% as a well-tuned case. Our [MFU explainer](https://www.nodus-compute.ai/blog/what-is-mfu/) covers why.
* Rates: H100 SXM listed at $2.60/hr and B200 listed at $5.50/hr on the Nodus pricing page.

At 30% MFU, one H100-hour delivers 989e12 × 0.30 × 3,600 = 1.068e18 useful FLOP. For GPT-4, 2.1e25 ÷ 1.068e18 = 19.66 million H100-hours, or $51.12 million at $2.60.

|Run|MFU|H100-hours|H100 cost|B200-hours|B200 cost|
|-|-|-|-|-|-|
|GPT-4, 2.1e25 FLOP|30%|19.66M|$51.12M|8.64M|$47.53M|
|GPT-4, 2.1e25 FLOP|40%|14.75M|$38.34M|6.48M|$35.65M|
|GPT-5, 6.6e25 FLOP|30%|61.79M|$160.66M|27.16M|$149.38M|
|GPT-5, 6.6e25 FLOP|40%|46.34M|$120.49M|20.37M|$112.04M|

*FLOP from Epoch AI; peaks from NVIDIA; Nodus list rates. Prices checked December 6, 2026.*

![Illustrative list-price compute for Epoch AI’s FLOP estimates at 30% MFU: GPT-4 $51.12M on H100 or $47.53M on B200, GPT-5 $160.66M on H100 or $149.38M on B200.](https://www.nodus-compute.ai/blog-charts/gpt-training-cost/list-price-compute.svg) *At 30% MFU, the B200 comes out about 7% cheaper per run than the H100 because its dense peak is 2.28 times higher for 2.12 times the price.*

Treat these as a scale check, not a quote. A run of 19.66 million H100-hours would occupy 10,000 GPUs for about 82 days. Nobody buys that at an on-demand hourly rate; labs own the hardware or sign reserved contracts. Our GPT-4 figure also assumes the run was dense BF16 at a known utilization, which OpenAI has never confirmed.

## Why is the real bill higher than the GPU-hour math?

The final training run is only one line of a frontier model’s cost. Epoch AI’s paper looks at four notable models, including GPT-4 and Gemini Ultra, and estimates that computing hardware is 47% to 64% of their total amortized development cost, R\&D staff including equity is 29% to 49%, and energy is 2% to 6%.

Experiments are the other big line. Epoch’s $90 million GPT-4 figure for hardware across the whole development is more than twice its $40 million for the final run alone. Add data work, evaluation and runs that crash or get thrown away, and the final-run number becomes a floor. Our [guide to LLM training cost](https://www.nodus-compute.ai/blog/cost-to-train-an-llm/) shows how interruptions and idle GPUs widen that gap even on small runs.

## What does a small team’s budget buy instead?

A small team’s budget buys a model about 500 times smaller in compute than GPT-4, and that is often enough. Take $100,000 at the Nodus H100 list rate: that is 38,462 H100-hours, or 4.11e22 useful FLOP at 30% MFU. That is 1/511 of Epoch AI’s GPT-4 estimate.

The 6ND rule from [Kaplan et al.](https://arxiv.org/abs/2001.08361) says training costs about 6 FLOP per parameter per token. Dividing 4.11e22 by 6 × parameters gives the tokens you can afford:

* A 1B model on about 6,850 billion tokens, or 6.85 trillion.
* A 3B model on about 2,280 billion tokens, or 2.28 trillion.
* A 7B model on about 978 billion tokens.

![Training tokens that $100,000 of H100 time buys at 30% MFU and $2.60/hr: 6.85 trillion for a 1B model, 2.28 trillion for a 3B model and 978 billion for a 7B model.](https://www.nodus-compute.ai/blog-charts/gpt-training-cost/hundred-k-budget.svg) *$100,000 trains a 7B model on almost a trillion tokens, 1/511 of GPT-4’s estimated compute.*

Most teams should not pretrain at all. Fine-tuning an open model is far cheaper: our [fine-tuning cost guide](https://www.nodus-compute.ai/blog/how-much-does-fine-tuning-cost/) works out $3.00 for an 8B LoRA run on one H100 with 20 million training tokens. If you do train, Nodus runs it as a TrainingJob that is estimated before it starts and capped by `maxCostUSD`, which suspends the run at the cap instead of failing it, per the [training guide](https://www.nodus-compute.ai/docs/guides/training/):

Terminal window

```console
$ nodus apply -f sft.yaml --dry-run -o yaml
```

## FAQ

### How much does ChatGPT training cost?

ChatGPT is a product built on several models, so it has no single training cost. The estimates above are for the GPT-4 and GPT-5 training runs. Serving ChatGPT to users is an inference cost, which these figures do not cover.

### Did GPT-4 really cost more than $100 million?

Sam Altman said so when asked about a $100 million figure, but he did not say what it included. Epoch AI’s estimate of $40 million covers only the final run’s amortized hardware and energy, so both can be true at once.

### Why did GPT-5 likely use less compute than GPT-4.5?

Epoch AI argues OpenAI put its effort into post-training a smaller model, which beat GPT-4.5 on many tasks with less pre-training. That is Epoch’s analysis, not an OpenAI disclosure.

### Could you train a GPT-4-scale model on Nodus?

Not on on-demand hours: a run near 20 million GPU-hours needs thousands of GPUs held for months. Nodus takes requests for dedicated capacity through [Reserved Compute (Beta)](https://www.nodus-compute.ai/docs/guides/marketplace/) and confirms availability and price in a proposal.
