PutThrough Product engineering studio
Book a build call

Building

Supabase vs Firebase in 2026: which to build on, and what each costs in production

Supabase or Firebase in 2026: databases, security, pricing and lock-in compared, including Firebase SQL Connect and what each really costs in production.

In short

Choose Supabase if your app needs relational data, one set of access rules for every client, a predictable monthly plan and the option to self-host. Choose Firebase for offline-first mobile apps inside Google Cloud with pay-per-use pricing that scales to zero. The old “SQL versus NoSQL” split no longer holds, because Firebase now offers Postgres through SQL Connect. In production, Supabase starts at $25 a month plus compute. Firebase starts at $0 and charges per read and write, and its budget alerts don’t cap the bill.

Key takeaways

  • Supabase is Postgres with row-level security. Firebase is Firestore with Security Rules, plus Postgres through SQL Connect.
  • Supabase Pro is $25 a month plus compute; point-in-time recovery adds about $100 a month.
  • Firebase charges per operation, and its budget alerts warn you but don’t cap the bill.
  • Both have a way around their own rules: Supabase’s service_role key and Firestore’s server libraries.

Supabase or Firebase: which should you choose?

Choose Supabase if you need

  • Relational data: tables, joins and SQL you can take to any Postgres host.
  • One access-control layer that applies to every client, written as database policies.
  • A flat monthly plan with a spending cap.
  • The option to self-host, since the whole platform is open source.
  • To keep building on an app an AI builder generated. Lovable, for one, runs its apps on Supabase.

Choose Firebase if you need

  • An offline-first mobile app. Firestore caches data on the device out of the box.
  • Tight integration with Google Cloud and its identity and access management.
  • Pay-per-use pricing that costs nothing when nobody is using the app.
  • Postgres without leaving Firebase, through SQL Connect.

How do Supabase and Firebase compare?

Supabase and Firebase side by side, September 2026
SupabaseFirebase
DatabasePostgresFirestore (documents), plus Postgres through SQL Connect
Access controlRow-level security policies on each tableSecurity Rules; server libraries use IAM and skip the rules
RealtimeBroadcast, Presence and database change streamsRealtime listeners with an offline cache
Server codeEdge Functions in TypeScriptCloud Functions, on the Blaze plan only
PricingPlans from $25 a month plus computePay per operation; no monthly fee
Spending limitSpend cap on by default (excludes compute and recovery add-ons)Budget alerts only; they don’t cap charges
Free tierPauses after a week without activity; no backupsDaily quotas; no Cloud Functions or Storage
Self-hostingYes, open source (Apache-2.0)No; the emulators are for local testing only

Is Firebase still NoSQL only?

No. Firebase SQL Connect, launched as Data Connect in April 2025 and renamed in April 2026, is a fully managed PostgreSQL database on Google Cloud SQL. It is queried through GraphQL operations with generated, type-safe SDKs. The April 2026 release added realtime query updates, offline caching and native SQL. Most comparisons still describe Firebase as NoSQL only, and that is out of date.

Pricing is separate from Firestore: 250,000 operations a month free, then $0.90 per million, plus the Cloud SQL instance, which Google lists from $9.37 a month. Projects on the free Spark plan get a 90-day trial.

How do Supabase row-level security and Firebase Security Rules differ?

In Supabase, each policy is attached to a table and runs every time the table is accessed, whoever is asking. In Firebase, Security Rules match document paths and check conditions on Google’s servers for Firestore, Realtime Database and Storage. Both work, but both have a way around them:

  • Supabase’s secret service_role key bypasses row-level security entirely, so it must never reach a browser or a mobile app.
  • Firestore’s server client libraries bypass Security Rules and rely on Google Cloud permissions instead.

On existing Supabase projects, new tables in the public schema are open to signed-in and signed-out users until row-level security is switched on. Supabase says it is changing that default but hasn’t given a date. Our symptom-by-symptom guide to Supabase RLS covers the fixes.

What does Supabase cost in production?

The free plan is not built for production: projects pause after a week without activity, and there are no backups. A production app is on Pro, which Supabase lists “from $25 a month”. Here is what the rest of the bill depends on:

Supabase Pro in September 2026
ItemIncludedBeyond that
Base plan$25 a month, with $10 of compute credit—
ComputeMicro instance covered by the creditSmall about $15 a month, Medium about $60
Database size8 GB per project$0.125 per GB
Monthly active users100,000$0.00325 each
Egress250 GB$0.09 per GB
BackupsDaily, kept 7 daysPoint-in-time recovery about $100 a month for 7 days (needs Small compute or larger)

Supabase’s own worked example, Pro with Small compute, comes to $30 a month. Add point-in-time recovery, which lets you restore to any moment rather than last night’s backup, and a careful production setup is about $130 a month. The spend cap is on by default but does not cover compute or recovery add-ons.

What does Firebase cost in production?

Firebase has no monthly fee on the Blaze plan: you pay for what you use beyond a free daily allowance. Cloud Functions and Storage require Blaze. For Firestore’s standard edition, Google’s September 2026 prices are:

Firestore standard edition, per 100,000 documents
OperationFree each dayus-central1nam5 (US multi-region)
Reads50,000$0.03$0.06
Writes20,000$0.09$0.18
Deletes20,000$0.01$0.02

An illustration, not a measurement: an app doing 300,000 reads and 50,000 writes a day in us-central1 pays for 250,000 reads ($0.075) and 30,000 writes ($0.027), about $0.10 a day or $3 a month. Authentication is free up to 50,000 monthly active users, and Cloud Functions include 2 million calls a month, then $0.40 per million.

The risk is the other direction. A bug that reads the same documents in a loop is billed like real traffic, and Firebase budget alerts, by Google’s own description, do not cap usage or charges.

Which one do AI app builders use?

Many use Supabase. Lovable runs its apps on it, and Supabase said in June 2026 that more than 60% of new databases on its platform are launched by some kind of AI tool. That makes the security section above the one to read: a generated app is only as safe as the row-level security policies on its tables, and those are often incomplete. Our list of the 20 ways AI-built apps fail in production starts there.

Can you move from Firebase to Supabase, or back?

Yes, but it is a migration, not an export. Documents become tables, Security Rules become policies, and users move between two authentication systems. Getting data out of Firestore needs the Blaze plan, lands in a Cloud Storage bucket, and costs one read per document. Supabase data is a standard Postgres database, so it moves with standard Postgres tools.

What next?

If you are choosing, start from the list at the top of this page. If you already run on Supabase, and especially if an AI builder set it up, the AI-Built App Audit Report checks every table, policy, function and bucket with read-only access for $349. If you are starting fresh, we build web apps in about a week on whichever fits.

Sources

  1. Supabase — Pricing
  2. Supabase — Compute and disk usage
  3. Supabase — Point-in-time recovery usage
  4. Supabase — Database backups
  5. Supabase — Cost control and the spend cap
  6. Supabase — Free project pausing
  7. Supabase — Row Level Security
  8. Supabase — Securing your API
  9. Supabase — Self-hosting
  10. Supabase — Series F announcement (June 2026)
  11. Firebase — Pricing
  12. Google Cloud — Firestore pricing
  13. Firebase — Pricing plans and budget alerts
  14. Firebase — SQL Connect documentation
  15. Firebase — SQL Connect pricing
  16. Firebase blog — Data Connect generally available (April 2025)
  17. Firebase blog — What’s new in SQL Connect (April 2026)
  18. Firebase — Get started with Security Rules for Firestore
  19. Firebase — Cloud Functions, get started
  20. Firebase — Export and import Firestore data
  21. Firebase — Local Emulator Suite

About the author

Anubhav Mehrotra

Founder and principal engineer at PutThrough. Six-plus years shipping software end to end — Android and iOS apps, backends, frontends, infrastructure and AI agents.

Questions

Questions this raises

Something we haven’t covered?

Ask on a call
01 Is Supabase cheaper than Firebase?

It depends on usage. Supabase is a flat plan from $25 a month plus compute, which is predictable. Firebase charges per operation with a free daily allowance, so a small or quiet app can cost less, but a busy app or a runaway bug can cost more, and its budget alerts don’t cap charges.

02 Does Firebase support SQL now?

Yes. Firebase SQL Connect, formerly Data Connect, is a managed PostgreSQL database on Google Cloud SQL, queried through GraphQL with generated SDKs. It became generally available in April 2025.

03 Do Supabase free projects pause?

Yes. A free project is paused after a week without enough database activity, after a warning email, and can be restored for up to a year. Free projects have no backups, so production apps belong on a paid plan.

04 Can you self-host Firebase?

No. Firebase’s Emulator Suite is for local development, and Google says not to use it as a self-hosted production service. Supabase is open source and can be self-hosted, though without the managed backups of the hosted platform.

05 Is Supabase row-level security on by default?

Not on every table. It has to be enabled per table, and on existing projects new public tables are readable and writable by signed-in and signed-out users until it is. Supabase has said it will change this default.

Have something to build?

A free 30-minute call. We’ll tell you honestly what fits in a week, and send a fixed quote afterward.

Prefer to write? Send your requirements

What do you need?

What it should do, who will use it, the must-haves, and any links. A few sentences is plenty.

Budget, if you have one in mind
When would you like to start?