This page describes the Firebase pricing plans, including how billing works for
Firebase and how it connects with other Google services.

Firebase offers two different pricing plans, the [no-cost Spark pricing plan](https://firebase.google.com/pricing.md.txt) and
the [pay-as-you-go Blaze pricing plan](https://firebase.google.com/pricing.md.txt). Here's a brief overview of each plan, but for
detailed information, visit the sections later on this page.

| Spark pricing plan *No payment information needed to get started or to use only the no-cost Firebase products* | Blaze pricing plan *Link a billing account to access more services and usage levels beyond the no-cost usage quota* |
|---|---|
| Full usage of no-cost Firebase products and features**\*** | Full usage of no-cost Firebase products and features**\*** |
| No-cost usage quota for paid Firebase products**\*\*** | No-cost usage quota for paid Firebase products**\*\*** |
|   | Pay-as-you-go pricing for any additional usage of paid Firebase products |
|   | Access to Cloud Functions (no-cost usage quota, then pay-as-you-go pricing for additional usage) |
|   | Access to paid Google Cloud products and features |

Which Firebase products are considered "no-cost" vs "paid"?
> **Firebase products that are no-cost**   
>
> No matter which Firebase pricing plan your project uses, you get full
> usage of the following Firebase products at no charge --- even in your
> production apps and *even if you have several million users!*
>
> |---|---|---|
> | A/B Testing App Check App Distribution Authentication (most options) | Cloud Messaging (FCM) Crashlytics Firebase ML (model deployment) | In-App Messaging Performance Monitoring |
>
> **Firebase products with a paid-tier of usage**   
>
> No matter which Firebase pricing plan your project uses, you get no-cost
> usage quota for the following Firebase products. If your project is on the
> Blaze pricing plan, you also get pay-as-you-go pricing for
> additional usage.
>
> |---|---|---|
> | App Hosting and Hosting Authentication (phone) Firebase Phone Number Verification SQL Connect | Extensions Cloud Firestore Cloud Storage Cloud Functions | Realtime Database Test Lab Firebase AI Logic Remote Config |
>
> For full details about the Firebase pricing plans (especially about
> [Cloud Functions](https://firebase.google.com/docs/functions/faq-and-troubleshooting.md.txt#storage-charge) and
> Google Cloud products), check out the
> [Firebase pricing page](https://firebase.google.com/pricing.md.txt).

### Learn product-specific information

- **Product-by-product breakdown for each pricing plan** :
  Check out the [Firebase pricing page](https://firebase.google.com/pricing.md.txt). On that page, you can learn
  about the no-cost Firebase products, no-cost usage quotas, and pay-as-you-go
  pricing for Firebase products.

- **Product-specific information about usage, quotas, and pricing** :
  Check out the product-specific documentation. These pages often provide
  usage-to-billing examples for the product and any limitations for specific
  features (for example, Crashlytics limits custom logging to 64kB). Visit
  each product's section in the Firebase documentation to find this type of
  information.

### Relationship between projects, apps, and billing

> [!NOTE]
> [All Firebase
> projects are actually Google Cloud projects](https://firebase.google.com/docs/projects/learn-more#firebase-cloud-relationship) behind the scenes, which means billing is shared across Firebase and Google Cloud and you can view the same project in both the Firebase console and the Google Cloud console.

> [!IMPORTANT]
> **Important:** **Firebase pricing plans apply to the entire project, not just to
> individual apps registered in the project.** When you're determining which pricing plan is right for you, consider the usage from *all the apps* registered in the same project. Learn more about [best practices](https://firebase.google.com/docs/projects/dev-workflows/general-best-practices.md.txt) for when to add multiple apps to the same Firebase project.

The following illustration shows how pricing plans (and billing accounts) are
associated with projects and apps.

![Relationship between pricing plans and projects and apps](https://firebase.google.com/docs/projects/images/billing_billingAcct-projects-apps-pricingPlan.png)

<br />

*** ** * ** ***

## Spark pricing plan

When you're in the initial stages of developing your app, start out with the
[no-cost Spark pricing plan](https://firebase.google.com/pricing.md.txt). You don't need to provide any payment information to
get started using most Firebase features right away!

And if you're *only* using no-cost Firebase products (like Crashlytics), you
can use the Spark pricing plan in production apps.
Which Firebase products are considered "no-cost" vs "paid"?
> **Firebase products that are no-cost**   
>
> No matter which Firebase pricing plan your project uses, you get full
> usage of the following Firebase products at no charge --- even in your
> production apps and *even if you have several million users!*
>
> |---|---|---|
> | A/B Testing App Check App Distribution Authentication (most options) | Cloud Messaging (FCM) Crashlytics Firebase ML (model deployment) | In-App Messaging Performance Monitoring |
>
> **Firebase products with a paid-tier of usage**   
>
> No matter which Firebase pricing plan your project uses, you get no-cost
> usage quota for the following Firebase products. If your project is on the
> Blaze pricing plan, you also get pay-as-you-go pricing for
> additional usage.
>
> |---|---|---|
> | App Hosting and Hosting Authentication (phone) Firebase Phone Number Verification SQL Connect | Extensions Cloud Firestore Cloud Storage Cloud Functions | Realtime Database Test Lab Firebase AI Logic Remote Config |
>
> For full details about the Firebase pricing plans (especially about
> [Cloud Functions](https://firebase.google.com/docs/functions/faq-and-troubleshooting.md.txt#storage-charge) and
> Google Cloud products), check out the
> [Firebase pricing page](https://firebase.google.com/pricing.md.txt).

### What's included with the Spark pricing plan?

The Spark pricing plan includes the following access to services:

- Full usage of the no-cost Firebase products and features**\*** (like social sign-in methods and Crashlytics)
- No-cost usage quotas for paid Firebase products (like Cloud Firestore, Cloud Storage, and Hosting)


^\*
*No-cost products still have limitations associated with specific
features (for example, Crashlytics limits custom logging to 64kB).
Visit each product's section in the Firebase documentation to find
this type of information.*^

### Example scenarios

Here are some examples of usage and billing on the Spark pricing plan:

- Example 1: Your app uses social sign-in methods and Crashlytics. You get
  access to all of the features in these products --- at no cost --- *even if
  your app has several million users*.

- Example 2: Your app uses custom Authentication, Crashlytics, and
  Cloud Firestore. You get access to all the features for custom Authentication and
  Crashlytics (no matter how many users you have), plus you get 20,000
  Cloud Firestore document writes and 50,000 document reads every day --- at no
  cost.

### Important facts to remember about the Spark pricing plan

Note the following about the Spark pricing plan:

- If you exceed the no-cost quota limit in a calendar month for any product,
  *your project's usage of that specific product will be shut off for the
  remainder of that month*.

  - This applies to *all apps* registered with that Firebase project.

  - To use that specific product again, you'll need to wait until the next
    billing cycle or
    [upgrade to the Blaze pricing plan](https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered).

- No-cost products still have limitations associated with specific
  features (for example, Crashlytics limits custom logging to 64kB).
  Visit each product's section in the Firebase documentation to find
  this type of information.
  Depending on the product or feature, these limitations may be due to factors
  like infrastructure, fair access, and other service protections.

- Paid Google Cloud products and features (like Pub/Sub,
  Cloud Run, or BigQuery streaming for Analytics) are
  not available for projects on the Spark pricing plan.

> [!IMPORTANT]
> **Important:** Review the sections at the bottom of this page about [switching between pricing plans](https://firebase.google.com/docs/projects/billing/firebase-pricing-plans.md.txt#switch-between-pricing-plans). Some actions and scenarios may *automatically* switch the pricing plan for your project. For example, **linking a Cloud Billing account to your project will auto-upgrade
> your project to the Blaze pricing plan**.

<br />

*** ** * ** ***

## Blaze pricing plan

You can upgrade to the [pay-as-you-go Blaze pricing plan](https://firebase.google.com/pricing.md.txt) if your app requires the
capabilities provided by the paid services and/or if you want increased quota
(for the products that offer this on the Blaze pricing plan).

A Firebase project on the Blaze pricing plan has a
[Cloud Billing account](https://firebase.google.com/docs/projects/billing/firebase-pricing-plans.md.txt#cloud-billing-accounts) linked to it, which enables
your project and apps to access more services and often higher usage levels.

> [!CAUTION]
> When your project is on the Blaze pricing plan, [**set up budget alerts**](https://firebase.google.com/docs/projects/billing/budget-alerts.md.txt). You can use the [Blaze pricing plan calculator](https://firebase.google.com/pricing.md.txt#blaze-calculator) to estimate your monthly costs.
>
> Be aware that **budget alerts do *not* cap your usage or
> charges** --- they are *alerts* about your costs so that you can
> take action, if needed. For example, you might consider
> [using budget notifications to programmatically disable
> Cloud Billing on a project](https://cloud.google.com/billing/docs/how-to/disable-billing-with-notifications).
>
>
> If you use Firebase AI Logic, Firebase App Hosting, Cloud Functions for Firebase, and Firebase Extensions, we strongly recommend that you
> also
> [**set up spend caps**](https://firebase.google.com/docs/projects/billing/spend-caps.md.txt),
> which will pause any new usage of the applicable service if your project
> reaches the budget set for that service.

> [!IMPORTANT]
> **Important:** If you're using Google Cloud credits that are provided in a Cloud Billing account (for example, the ["Google Cloud $300 Free Trial"](https://firebase.google.com/support/faq.md.txt#pricing-free-trial)) and you link that billing account to your project, then your project is automatically upgraded to the Blaze pricing plan. Note that any usage or costs beyond those credits is determined by the credits program that you're using.

### What's included with the Blaze pricing plan?

The Blaze pricing plan includes the following access to services:

- Full usage of the no-cost Firebase products and features**\*** (like
  social sign-in methods and Crashlytics)

- No-cost usage quotas for paid Firebase products (like
  Cloud Firestore, Cloud Storage, and Hosting)

- Pay-as-you-go pricing for any additional usage of paid Firebase products

- No-cost usage quota for Cloud Functions for Firebase, then pay-as-you-go pricing

- Access to paid Google Cloud products and features (like Pub/Sub,
  Cloud Run, or BigQuery streaming for Analytics)


^\*
*No-cost products still have limitations associated with specific
features (for example, Crashlytics limits custom logging to 64kB).
Visit each product's section in the Firebase documentation to find
this type of information.*^

If your project stays within the Blaze pricing plan's no-cost usage
quotas for paid products, then you won't see any charges for those products
(with the
[exception of Cloud Functions for Firebase](https://firebase.google.com/docs/functions/faq-and-troubleshooting.md.txt#storage-charge)).
But if you do happen to exceed the no-cost usage quota, you only pay for the
resources that you consume --- this is why the Blaze pricing plan is
called the "pay-as-you-go" plan.

### Example scenarios

Here are some examples of usage and billing on the Blaze pricing plan:

- Example 1: Your app uses social sign-in methods and Crashlytics. You get
  access to all of the features in these products --- at no cost --- *even if
  your app has several million users*.

- Example 2: Your app uses custom Authentication, Crashlytics, and
  Cloud Firestore. You get access to all the features for custom Authentication and
  Crashlytics (no matter how many users you have), plus you get 50,000
  Cloud Firestore document reads and 20,000 document writes every day --- at no
  cost.

  However, if your project's usage of Cloud Firestore is *higher* than those
  daily quotas, you're charged for the reads and writes that day which
  *exceed* the 50K or 20K count.

### Important facts to remember about the Blaze pricing plan

Note the following about the Blaze pricing plan:

- Depending on the product, the amount of no-cost usage quota available for
  the Spark pricing plan versus Blaze pricing plan may be
  different. Read more in [this FAQ](https://firebase.google.com/support/faq.md.txt#pricing-blaze-no-cost).

- No-cost products still have limitations associated with specific
  features (for example, Crashlytics limits custom logging to 64kB).
  Visit each product's section in the Firebase documentation to find
  this type of information.
  Depending on the product or feature, these limitations may be due to factors
  like infrastructure, fair access, and other service protections.

- Most Firebase products and features have quotas and pricing based on a daily
  usage, but some are based on monthly or hourly usage. Cloud Functions,
  for example, has a no-cost usage tier that resets every month, but
  Cloud Firestore and Cloud Storage have no-cost tiers that reset every
  day. Read more in this [FAQ](https://firebase.google.com/support/faq.md.txt#pricing-blaze-no-cost).

> [!IMPORTANT]
> **Important:** Review the sections at the bottom of this page about [switching between pricing plans](https://firebase.google.com/docs/projects/billing/firebase-pricing-plans.md.txt#switch-between-pricing-plans). Some actions and scenarios may *automatically* switch the pricing plan for your project. For example, **linking a Cloud Billing account to your project will auto-upgrade
> your project to the Blaze pricing plan**.

## Google Cloud Billing accounts

When your project is on the Blaze pricing plan, your project is linked
to a
[Google Cloud Billing account](https://docs.cloud.google.com/billing/docs).
Here are some quick facts about Cloud Billing accounts:

- Cloud Billing accounts require a payment method. This includes most
  major credit cards as well as other payment methods. For detailed
  information, see the
  [Cloud Billing documentation](https://docs.cloud.google.com/billing/docs/how-to/payment-methods#available_payment_methods).

- You can link multiple Firebase projects to a single
  Cloud Billing account. All these projects will be on the
  Blaze pricing plan.

- Check if you're eligible for credits. For example, if you're new to Firebase
  and Google Cloud, you might be eligible for the
  ["Google Cloud $300 Free Trial"](https://firebase.google.com/support/faq.md.txt#pricing-free-trial) to try
  out our services. Note that any usage or costs beyond those credits is
  determined by the credits program that you're using.

<br />

*** ** * ** ***

## Switching between pricing plans

> [!CAUTION]
> Some actions and situations may ***automatically*** switch your pricing plan between Spark pricing plan and Blaze pricing plan. Learn more in the following sections.

### Upgrading from Spark pricing plan to Blaze pricing plan

You can
[upgrade to the Blaze pricing plan](https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered)
in the Firebase console.

For all intents and purposes, upgrading a Firebase project to the
Blaze pricing plan means that you're linking a
Cloud Billing account to the underlying Google Cloud project.

#### The following actions and situations will *automatically upgrade* your pricing plan from Spark pricing plan to Blaze pricing plan:

- Linking a Cloud Billing account to your project from within the
  Google Cloud console

- Using Google Cloud services (like Pub/Sub or Cloud Run) or
  Google Maps APIs in the same project

  For example, if you start using a Google Cloud service from within the
  Google Cloud console, you'll be required to link a Cloud Billing account
  --- this automatically upgrades your Firebase pricing plan to the
  Blaze pricing plan.

#### If your project upgrades from Spark pricing plan to Blaze pricing plan, be aware of what will happen:

- Depending on the product, the amount of no-cost usage quota available for the Spark pricing plan versus Blaze pricing plan may be different. Read more in [this FAQ](https://firebase.google.com/support/faq.md.txt#pricing-blaze-no-cost).

### Downgrading from Blaze pricing plan to Spark pricing plan

You can
[downgrade to the Spark pricing plan](https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered)
in the Firebase console.

#### The following actions and situations will *automatically downgrade* your pricing plan from Blaze pricing plan to Spark pricing plan:

- Unlinking a Cloud Billing account from your project from within the
  Google Cloud console

- Closing the Cloud Billing account linked to your project  

  Note that Cloud Billing can close accounts based on the payment status or
  history. Learn how to
  [resolve Cloud Billing issues](https://docs.cloud.google.com/billing/docs/how-to/resolve-issues).

#### If your project downgrades from Blaze pricing plan to Spark pricing plan, be aware of what will happen:

- Your project loses access to any paid Google Cloud services, like
  Pub/Sub, Cloud Run, or BigQuery streaming for
  Analytics.

- Your project loses access to any non-default Realtime Database instances
  or non-default Cloud Storage buckets.

  - *The data in these instances and buckets doesn't get deleted*, but you
    won't have access to the data (meaning no read/write access from your app,
    no console access, and no REST API access).

  - To re-enable access,
    [upgrade to the Blaze pricing plan](https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered).

  - If you need to delete the data from these non-default instances and
    buckets, but remain on the Spark pricing plan,
    [contact Firebase Support](https://firebase.google.com/support/troubleshooter/contact).

- You cannot do *new* deploys of any new or any existing Cloud Functions.

- Depending on the product, the amount of no-cost usage quota available for
  the Spark pricing plan versus Blaze pricing plan may be
  different. Read more in [this FAQ](https://firebase.google.com/support/faq.md.txt#pricing-blaze-no-cost).

<br />

*** ** * ** ***

## Next steps

- Check out the Firebase [pricing FAQs](https://firebase.google.com/support/faq.md.txt#pricing) for answers to
  several specific situations, especially for billing related to
  [Cloud Functions for Firebase](https://firebase.google.com/docs/functions/faq-and-troubleshooting.md.txt#functions-pricing).

- Learn how to
  [avoid surprise bills](https://firebase.google.com/docs/projects/billing/avoid-surprise-bills.md.txt)
  by testing your code, monitoring your usage and spend levels, and setting up
  budget alerts and spend caps.