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 | Firebase | |
|---|---|---|
| Database | Postgres | Firestore (documents), plus Postgres through SQL Connect |
| Access control | Row-level security policies on each table | Security Rules; server libraries use IAM and skip the rules |
| Realtime | Broadcast, Presence and database change streams | Realtime listeners with an offline cache |
| Server code | Edge Functions in TypeScript | Cloud Functions, on the Blaze plan only |
| Pricing | Plans from $25 a month plus compute | Pay per operation; no monthly fee |
| Spending limit | Spend cap on by default (excludes compute and recovery add-ons) | Budget alerts only; they don’t cap charges |
| Free tier | Pauses after a week without activity; no backups | Daily quotas; no Cloud Functions or Storage |
| Self-hosting | Yes, 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_rolekey 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:
| Item | Included | Beyond that |
|---|---|---|
| Base plan | $25 a month, with $10 of compute credit | — |
| Compute | Micro instance covered by the credit | Small about $15 a month, Medium about $60 |
| Database size | 8 GB per project | $0.125 per GB |
| Monthly active users | 100,000 | $0.00325 each |
| Egress | 250 GB | $0.09 per GB |
| Backups | Daily, kept 7 days | Point-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:
| Operation | Free each day | us-central1 | nam5 (US multi-region) |
|---|---|---|---|
| Reads | 50,000 | $0.03 | $0.06 |
| Writes | 20,000 | $0.09 | $0.18 |
| Deletes | 20,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
- Supabase — Pricing
- Supabase — Compute and disk usage
- Supabase — Point-in-time recovery usage
- Supabase — Database backups
- Supabase — Cost control and the spend cap
- Supabase — Free project pausing
- Supabase — Row Level Security
- Supabase — Securing your API
- Supabase — Self-hosting
- Supabase — Series F announcement (June 2026)
- Firebase — Pricing
- Google Cloud — Firestore pricing
- Firebase — Pricing plans and budget alerts
- Firebase — SQL Connect documentation
- Firebase — SQL Connect pricing
- Firebase blog — Data Connect generally available (April 2025)
- Firebase blog — What’s new in SQL Connect (April 2026)
- Firebase — Get started with Security Rules for Firestore
- Firebase — Cloud Functions, get started
- Firebase — Export and import Firestore data
- Firebase — Local Emulator Suite