When CPU time is most of the Workers bill: the formula and two levers
neo yang (@NYang40764) says over 80% of his monthly Cloudflare bill is CPU time and shares the formula (avg CPU ms × requests − free) ÷ 1M × $0.02, with two levers: fewer requests and less CPU per request.
- Products
- Workers
- Source
- Author experience𝕏
- Author
- neo yang (@NYang40764)
Key points
- The author reports that more than 80% of his monthly bill is CPU time; the post does not give the bill amount.
- His formula: (average CPU ms × requests − free allowance) ÷ 1,000,000 × $0.02. The only two levers he names are fewer requests and less CPU per request.
- Official Workers pricing (rechecked 2026-10-20) uses the same shape: Standard includes 30 million CPU ms per month, then $0.02 per additional million CPU ms; with Workers Caching, cache hits are billed as requests but use no CPU time.
Original sources
Published
Original post
Read on 𝕏neo yang (@NYang40764) says over 80% of his monthly Cloudflare bill is CPU time and shares the formula (avg CPU ms × requests − free) ÷ 1M × $0.02, with two levers: fewer requests and less CPU per request.
neo yang
@NYang40764 · Original 𝕏 post
Cloudflare CPU costs are killing me. Over 80% of my monthly bill is just CPU time. Formula: (avg CPU ms × requests − free) ÷ 1M × $0.02 Two levers only: • Fewer requests • Less CPU per request https://t.co/TgMY7fTyFu
More to read
Feng Yi: After Observability is billed by write volume, capture all errors and sample only 1%–10% of successful requests; put the body in R2 and set a 7-day expiry
On 2026-11-20, X user @Michael_liyang (Feng Yi), replying to @AdrianPunk115's reminder that from 1 December logs and request tracing will be billed by the volume of data written and stored, wrote: once billing is by write volume, this will change to "capture all errors and sample 1%–10% of successful requests"; a trace keeps only request_id/route/status/duration, and the raw body and prompt go in R2 with a 7-day expiry. The author cautions: estimate bytes written per day before launch, and don't wait for the bill to find that tracing costs more than the business.
igorrizzom: a forgotten Durable Object alarm billed US$ 2,038; Support refunded US$ 1,533.29, leaving US$ 505.
X user @igorrizzom (Igor Rizzo), who also posted on Cloudflare Community as igorarm (urnaaovivo.com), says a personal, non-commercial prototype that collected public election data in Brazil was left running after the October 25 runoff. A Durable Object kept rescheduling itself via alarm every ~5 seconds and writing to SQLite, and the invoice reached US$ 2,038, almost all from DO rows written, with about 10k pageviews. The author says budget alerts were set up but went to an old inbox that was never checked, and that alerts do not stop usage. Spend limits for Workers and Durable Objects were only announced on November 13, after almost all of the usage; the author then set a US$ 1 spend limit, turned the collector off, and removed Cron Triggers. The author says Support refunded US$ 1,533.29 as a one-time courtesy. The remaining US$ 505, which the author later described as US$ 500 of usage plus the US$ 5 Workers Paid fee, was closed as final; the author asked for a supervisor review in case #02442826 (follow-up to #02435308) and also asked @SidChatterjee whether any goodwill path remained for pre-launch cases. There is no Cloudflare staff reply on the public X thread or the Community thread. Public Support actions are reported by the author.
Turn free allowances into daily budgets with alerts at 70% and 90%
风易 (@Michael_liyang) says 100,000 requests a day and 5 million rows read a day are hard walls, not a safety margin: split production and test into different Workers and D1 databases, alert at 70% and 90%, and degrade before the site returns 500s.