Skip to content
Elco Dev

Insights · 5 min read

Why your Firebase bill spiked, and how to keep it under control

By Austin Hunter ·

Firebase is cheap for most small apps until, one month, it isn't. We run several apps on Firebase and Google Cloud and keep budget and forecast alerts on every billed project, because surprises do happen. Here's what usually causes them and what actually limits them.

First, know what a budget does (and doesn't)

A Google Cloud budget on the Blaze plan sends alerts. On its own it doesn't stop spending. Firebase's documentation describes separate spend caps for a few services (Cloud Functions, App Hosting, Firebase AI Logic and Extensions), and anything beyond those needs either code that reacts to the alert or a person who acts on it quickly. Check Firebase's current "spend caps" and "budget alerts" pages for your project.

The usual causes

Settings that keep it predictable

If it's happening right now

Find the service and the day the spike started in the billing reports, restrict or rotate any key that might be misused, and fix the query or function causing it. If the cause was abuse of a leaked key, contact Google Cloud billing support about the charges.

A second pair of eyes

Our $990 Production health check reviews running costs, exposed keys and data access rules on a live app and gives you a ranked fix list with fixed prices.

Want a fixed quote for your project?

Book a free 30-minute call. You'll leave with a clear idea of scope, timeline and cost.