Firebase Pricing: Free Tier is Generous, But Without Budget Alerts You Could Wake Up to a $5,000 Bill

Spark plan is free. Blaze plan is pay-as-you-go. The difference between a $5/mo and $5,000/mo bill is understanding which operations cost money and setting limits before launch.

Spark vs Blaze: The Two Firebase Plans

Firebase has exactly two plans: Spark (free) and Blaze (pay-as-you-go). There are no tiers, no per-seat charges, and no enterprise pricing. The Blaze plan includes all Spark free limits as a free allocation, so you only pay for usage above the free thresholds.

Spark Plan

Free

  • Firestore: 1GB storage, 50K reads/day, 20K writes/day
  • Authentication: 10K MAU
  • Hosting: 10GB storage, 360MB/day transfer
  • Cloud Storage: 5GB, 1GB/day downloads
  • Cloud Functions: Not available
  • Realtime Database: 1GB stored, 10GB/mo download

Blaze Plan

Pay-as-you-go

  • Includes all Spark limits free
  • Firestore: $0.06/100K reads, $0.18/100K writes
  • Cloud Functions: $0.40/million invocations
  • Cloud Storage: $0.026/GB stored
  • Authentication: Free to 50K MAU, then $0.0055/MAU
  • Hosting: $0.15/GB transfer

Blaze Plan Pricing for Each Service

ServiceUnitPrice
Firestore readsPer 100K documents$0.06
Firestore writesPer 100K documents$0.18
Firestore deletesPer 100K documents$0.02
Firestore storagePer GB/month$0.18
Realtime Database storagePer GB/month$5.00
Realtime Database downloadsPer GB$1.00
Cloud Functions invocationsPer million$0.40
Cloud Storage storedPer GB/month$0.026
Cloud Storage downloadsPer GB$0.12
Hosting transferPer GB$0.15
Authentication (above 50K MAU)Per MAU$0.0055

The Bill Shock Scenarios

Firebase pricing is usage-based, which means costs scale linearly with traffic. Without monitoring, these real-world scenarios can create unexpected bills:

Scenario 1: Social App with 10K Daily Active Users

Each user session triggers 50 Firestore reads (feed, profiles, messages). That is 500,000 reads per day or 15 million per month. At $0.06 per 100K reads, the Firestore read cost alone is $9/day or $270/month. Add writes for posts and messages, Cloud Functions for notifications, and Cloud Storage for images, and the total easily reaches $400 to $600/month.

Scenario 2: Chat App Storing Images

Users upload 100,000 photos at 2MB each. That is 200GB in Cloud Storage at $0.026/GB = $5.20/month for storage. But every time a user views an image, it counts as a download at $0.12/GB. If each photo is viewed 10 times on average, that is 2TB of downloads = $240/month. Image-heavy apps can see storage download costs dominate the bill.

Scenario 3: Viral Moment with 1M Visitors in One Day

A Next.js app using Cloud Functions for server-side rendering goes viral. One million unique visitors trigger 1 million Cloud Function invocations ($0.40) plus Firestore reads for content. If each visit reads 5 documents, that is 5 million reads ($3). Cloud Function compute time at 256MB for 200ms each adds another $30 to $80. Total for one day: $400 to $2,000 depending on page complexity. Without rate limiting, there is nothing to stop the charges.

Budget Alerts and Spending Protection

Firebase does not have hard spending caps, but you can set up protections through Google Cloud Billing and Firebase project settings. These will not automatically stop charges, but they give you early warning to take action.

1. Google Cloud Budget Alerts

Go to Google Cloud Console, navigate to Billing, then Budgets and Alerts. Create a budget for your Firebase project with thresholds at 50%, 80%, and 100% of your target spend. Set email notifications and optionally a Pub/Sub topic for programmatic alerts. This is the most important protection and takes 5 minutes to set up.

2. Firestore Daily Usage Quotas

In the Google Cloud Console, navigate to App Engine, then Settings, then Spending. Set daily spending limits for Firestore operations. When the limit is reached, Firestore operations return errors until the next day. This is a hard cap but will cause your app to return errors, so set it above your expected peak usage.

3. Cloud Functions Rate Limiting

Set maximum instances for each Cloud Function to limit concurrent executions. A function with maxInstances set to 10 cannot scale beyond 10 simultaneous executions, which caps costs during traffic spikes. Also set a minimum instances of 0 so functions scale to zero when idle.

Firebase vs Supabase Pricing

FeatureFirebaseSupabase
Free tierGenerous per-service limits50K MAU, 500MB DB, 1GB storage
Paid pricingPay-as-you-go (variable)Pro $25/mo (predictable)
DatabaseFirestore (NoSQL)PostgreSQL (relational)
Cost at 10K DAU~$100-$600/mo$25-$50/mo
Cost at 100K DAU~$1,000-$5,000/mo$599/mo (Team)
Data portabilityVendor lock-inStandard PostgreSQL

For a comprehensive comparison, see our Firebase vs Supabase page.

Firebase vs AWS Amplify

AWS Amplify is the closest AWS equivalent to Firebase. Both offer authentication, databases, storage, hosting, and serverless functions. Amplify's pricing is similarly usage-based but with different rate structures. Amplify Hosting charges $0.01/GB served (compared to Firebase Hosting at $0.15/GB), making it significantly cheaper for hosting-heavy apps.

Amplify uses DynamoDB or AppSync for its data layer, which has different cost dynamics than Firestore. DynamoDB charges for read/write capacity units rather than individual operations, which can be more predictable but requires understanding provisioned vs on-demand capacity modes. For teams already on AWS, Amplify is a natural choice. For teams wanting the simplest developer experience, Firebase is easier to get started with.

Firebase Monthly Cost Estimator

Estimate your Blaze plan costs. Free tier allocations are automatically subtracted.

01M
0500K
05M

Estimated Monthly Cost

Firestore$0.72
Cloud Functions$0.00
Cloud Storage$0.73
Authentication$0.00
Hosting$0.00

Total monthly estimate

$1.45

Alternative comparison

Supabase Pro$0.00/mo
AWS Amplify (est.)$1.16/mo

Frequently Asked Questions

Is Firebase free?
Firebase has a free Spark plan that includes generous limits: 50,000 Firestore reads per day, 20,000 writes per day, 1GB storage, 10GB hosting storage, and 10,000 authentications per month. For small apps and prototypes, the free tier is often sufficient. The Blaze plan (pay-as-you-go) is required for Cloud Functions and charges only for usage above the free allocation.
How does the Blaze plan work?
The Blaze plan is pay-as-you-go and includes all the Spark free tier limits at no charge. You only pay for usage that exceeds the free allocation. Most small apps on Blaze actually pay $1 to $10 per month because the free allocation covers basic usage. You need a Google Cloud billing account linked to your Firebase project.
Can Firebase get expensive unexpectedly?
Yes. Firebase does not have hard spending caps. If your app goes viral or a coding mistake causes excessive Firestore reads, your bill can spike to hundreds or thousands of dollars in a single day. Set up Google Cloud budget alerts and implement rate limiting on Cloud Functions to protect against bill shock. Budget alerts warn you but do not stop charges.
What costs money on Firebase?
The main cost drivers are Firestore reads (each document read costs money at scale), Cloud Functions invocations and compute time, Cloud Storage downloads, and Authentication above 50,000 monthly active users. Firestore reads are the most common surprise expense because apps often perform more reads than developers realize.
Is Firebase cheaper than Supabase?
For small projects, Firebase free tier is more generous than Supabase free tier in some areas. For growing apps, Supabase Pro at $25/month provides predictable costs with generous allocations, while Firebase Blaze costs vary with usage. At 10,000+ daily active users, Supabase often becomes cheaper because Firebase Firestore read costs scale linearly.
Does Firebase charge for authentication?
Authentication is free up to 50,000 monthly active users on both Spark and Blaze plans. Above 50,000 MAU, the cost is $0.0055 per MAU (about $5.50 per 1,000 users). Phone authentication has separate per-SMS charges. For most apps, authentication costs are minimal compared to Firestore and Functions.
Can I set a spending limit on Firebase?
Firebase itself does not offer hard spending limits. However, you can set budget alerts through Google Cloud Billing to receive email notifications when spending exceeds thresholds. You can also set Firestore daily usage quotas in the Google Cloud Console and implement rate limiting on Cloud Functions. These measures help prevent bill shock but require manual setup.