Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

Firebase Cloud Functions

Firebase Cloud Functions is free to emulate locally, while deployment requires Blaze and allows no-cost usage with billable overages based on your function's generation and configuration.

Cloud Functions for Firebase runs your backend code when an HTTPS request or a Firebase event arrives. It is for app developers who use Firebase and do not want to run servers.

By Google CloudComputeChecked ✓ 23 Nov 2026

Is it a fit?

Good fit

Use it when your app already uses Firebase and you need server-side code that runs on events or HTTPS requests.

  • event-driven apps
  • mobile backends
  • prototyping
  • Firebase-integrated projects

Not a fit

Avoid it if you cannot move your project to the pay-as-you-go Blaze plan, which needs a Cloud Billing account with a payment method.

  • no payment method for a Cloud Billing account

You write functions in Node.js or Python, test them with the Firebase emulators, and deploy them with the Firebase CLI. They can run on HTTPS requests or on events from Firebase features such as Cloud Firestore. It suits app developers who already use Firebase and need a little server-side code.

What the free plan gives you

Firebase has two pricing plans. Cloud Functions is marked not applicable on the no-cost Spark plan, and the docs say your project must be on the pay-as-you-go Blaze plan to deploy functions. You can still emulate functions on any project.

The Firebase table lists 2M invocations, 400K GB-seconds, 200K CPU-seconds and 5 GB outbound monthly. These are not a universal estimate: second-generation functions run on Cloud Run, whose request-based tier has 2M requests, 180K vCPU-seconds, 360K GiB-seconds and 1 GiB North America outbound monthly. Builds and stored container images are separate services. Their allowances depend on the applicable product and SKU.

When you hit a limit

Blaze does not stop at free allowances. Firebase lists $0.40/million excess invocations and $0.12/GB outbound; second-generation workloads use Cloud Run pricing. Compute, builds, networking and container storage can all cost extra. Check generation, region and billing SKUs.

Blaze requires Cloud Billing and a payment method, so runaway functions can bill. Optional monthly spend caps are in preview for supported services, including underlying Cloud Run functions. Caps pause new usage until next month, but reporting delays permit billable overshoot. They apply per project/service to gross cost before credits and do not automatically cap related build or storage costs.

Gotchas

  • Deploying functions needs the Blaze plan, so you must attach a billing account even if you expect to stay under the no-cost amounts.
  • Firebase lists 120 build minutes/day, while Cloud Build lists 2,500 promotional e2-standard-2 minutes/month. Check the applicable machine and SKU; container images also use Artifact Registry storage.
  • The docs support Node.js versions 20 and 22 and Python versions 3.10 through 3.13, so check your runtime before you deploy.

Alternatives in this atlas

Questions people ask

Is Firebase Cloud Functions free?

Blaze includes no-cost usage, but second-generation functions use Cloud Run pricing. Firebase’s table lists older invocation and compute counters, so check your deployed generation and related build and storage costs.

Does Firebase Cloud Functions need a credit card?

Deployment requires the Blaze plan and a Cloud Billing account with a valid payment method. Google accepts major credit cards and other payment methods.

What happens when I go over the Cloud Functions no-cost amount?

Firebase bills extra usage. Its legacy table lists $0.40 per million invocations beyond 2 million, and second-generation functions follow Cloud Run pricing. Optional preview spend caps can pause new usage, but they do not guarantee a hard billing ceiling.

How to get started

  1. Create a Firebase project in the Firebase console and switch it to the Blaze plan.
  2. Install Node.js, then run npm install -g firebase-tools.
  3. Run firebase login, then firebase init functions in your project folder and choose JavaScript or TypeScript.
  4. Write your function in the functions folder and test it with firebase emulators:start.
  5. Deploy with firebase deploy --only functions.

Other free compute options

Same category, safest first.

Cloudflare · Compute
100,000 requests/day · 10ms CPU time/request · Up to 100 Workers per account
Billing risk: None
No card
1,000,000 Function Invocations/month included · 4 CPU-hrs Fluid Active CPU/month included · 360 GB-hrs Fluid Provisioned Memory/month included
Billing risk: None
No card
Cloudflare · Compute
100,000 requests per day, shared with Workers requests · 3,000 steps per day · 1 GB-month of storage
Billing risk: None
No card
Trigger.dev · Compute
$5 compute credits per month · 20 concurrent runs · Unlimited tasks
Billing risk: None
No card