Back to Blog
Development

Supabase vs Neon for a Small Next.js Project

SoftivumLinkedIn
Engineering and delivery team
7 min
Two small servers with blank price tags sit beside a laptop showing a web app on a startup desk
On this page

The short version

Supabase vs Neon comes down to what surrounds the database. Both are managed Postgres, and both connect to Next.js the usual way. Supabase is a backend platform: Postgres plus auth, storage, edge functions and realtime, billed together. Neon is Postgres with branching and scale to zero, and you bring your own auth and storage.

For a small project, pick Supabase when you want sign-in, uploads and live updates without assembling them. Pick Neon when you want a database that costs almost nothing while idle and gives each preview deployment its own branch.

Plans and prices side by side

Prices below are quoted from each vendor's pricing page. Both change them, so check the page before you commit.

Supabase FreeSupabase ProNeon FreeNeon Launch
Pricefrom $0/monthfrom $25/month$0/monthPay for what you use
Database500 MB database size, shared CPU, 500 MB RAM8 GB disk per project, then $0.125 per GB1 GB per project, 20 GB account total$0.35 per GB-month
ComputeShared CPU$10/month in compute credits, which covers one Micro instance100 CU-hours per project, up to 2 CU (8 GB RAM)$0.106 per CU-hour, up to 16 CU (64 GB RAM)
Idle behaviourPaused after 1 week of inactivityNot paused for inactivityScale to zero after 5 minutesScale to zero after 5 minutes, can be disabled
Projects2 active projectsPer project billing100 projects100 projects
Egress5 GB250 GB, then $0.09 per GBNot listedNot listed
Auth users50,000 monthly active users100,000 MAU, then $0.00325 per MAUBring your ownBring your own
BranchesNot listedNot listed10 per project10 per project, extra $1.50 per branch-month
Restore windowNot listedNot listed6 hours (1 GB limit)Up to 7 days

Sources: Supabase pricing, Neon pricing.

Read the table by what it implies for a small app. Supabase's free plan gives you the whole platform for two projects, and the paid step is a flat $25 a month with credits, disk, egress and 100,000 monthly active users included. Neon's free plan is a database only, with a generous project count, and its paid plan bills compute by the hour, so a database that sleeps most of the day costs little. Neon's pricing page puts typical Launch spend at about $15 a month for a small, intermittent database.

Idle behaviour matters more than the price

The two handle quiet periods differently, and a Next.js app on a new product is quiet most of the time.

Supabase's pricing page says free projects are paused after 1 week of inactivity. A paused project has to be restored, so a demo that sat for a fortnight greets your next visitor with an error until someone un-pauses it. On paid plans projects are not paused for inactivity, which is the practical reason most live products move to Pro.

Neon suspends compute instead of the project. Its scale to zero documentation says a database scales to zero after 5 minutes of inactivity and reactivates automatically within a few hundred milliseconds once a query arrives. Your data and project stay in place, and the first request after a quiet spell is slightly slower rather than broken. Paid plans can turn scale to zero off to keep compute running.

What each one gives a Next.js app

Supabase. Auth, file storage, edge functions and realtime sit next to the database, and the Pro quotas include 100 GB of storage, 2 million edge function invocations and 5 million realtime messages, per Supabase billing. If your MVP needs login, uploads and live updates, you configure one platform and one bill.

Neon. Branching is the feature that changes how a team works. Each preview deployment can get its own copy of the database, so a migration is tested on real-shaped data before it touches production. Pair it with an auth library inside the Next.js app and object storage elsewhere.

Either way, the Next.js side is the same: server components and route handlers query Postgres through a standard driver or ORM, and the connection string lives in environment variables on your hosting account. For the framework side, see what Next.js is and why businesses use it.

Three typical small-project setups

A pre-launch demo for investors. It is visited a handful of times a week. On Supabase's free plan the project is paused after 1 week of inactivity, so the night before a demo you restore it and test. On Neon's free plan the database scales to zero after 5 minutes and wakes on the first query, so nothing needs restoring. For a demo that sits idle, Neon is the lower-maintenance choice.

A client portal with logins and file uploads. Users sign in, upload documents and see status updates. This is Supabase's home ground: auth, storage and realtime come with the project, and the Pro plan lists 100,000 monthly active users and 100 GB of storage. Building the same on Neon means choosing and wiring an auth library and an object store yourself, which is more work in week one and more control afterwards.

An internal tool with its own sign-in. A dozen staff use it during office hours. Compute sleeps overnight and at weekends, which is exactly where Neon's hourly compute billing helps. If you already use your company login for access, Supabase's auth adds little, and a plain Postgres database is all you need.

Mistakes we see on small projects

Treating the free plan as production. The free plans suit prototypes. Supabase pauses idle free projects, and Neon's free plan has a fixed 5-minute suspend and a short 6-hour restore window. A live product with paying users belongs on a paid plan, with backups you have tested.

Leaning on provider extras without noticing. Row-level security policies tied to Supabase auth, or Neon branching in your deployment pipeline, are real advantages. They are also the parts that make a later move harder. Write down which provider features you rely on, so the trade is a decision rather than an accident.

Skipping connection handling. Next.js on serverless hosting opens many short-lived connections. Use the pooled connection string your provider documents for serverless, and keep one data-access module so the driver choice and pool settings live in a single place.

Forgetting the hosting account. The database is only one of the accounts a product depends on. Create the database, hosting and domain accounts in the business owner's name from day one, so access never depends on a contractor.

How to choose for an MVP

Answer three questions.

Does the product need auth, storage and realtime in week one? If yes, Supabase saves integration work. If auth is a small part and you would rather own it in the app, Neon is leaner.

Will the app sit idle for long stretches? A pre-launch product or an internal tool does. Neon's scale to zero keeps those weeks cheap. On Supabase, plan for Pro the moment real users depend on it, so nothing gets paused.

How many environments do you want? Branch-per-preview is native on Neon. On Supabase you create separate projects, which count against the free plan's two.

If none of these decides it, start on the free plan of whichever you prefer. The schema is plain Postgres, so the choice is reversible when your usage is known.

Questions to ask before you commit

Who will own the account, and is it in the business owner's name? What happens to the app if the free plan limits are hit on a busy day? Which features depend on provider-specific tools, and how would you replace them? How often do backups run, and has anyone restored one to check it works? Answering these four questions in writing, before the first user signs up, avoids most of the expensive surprises small projects meet in their first year.

What to do this week

List the features in scope and mark which need auth, storage or realtime. Check the current prices on both pricing pages, because they change. Create a free project on your preferred provider, run your real schema and one realistic query load against it, and note what the free plan limits would cost you in production. That half day of testing settles the choice better than any comparison table.

How we set this up

On an MVP build the database is chosen in the scoping week from the features in scope, and the schema and migrations live in the repository from the first commit. The hosting and database accounts are created in your name, preview deployments run against a non-production database, and the connection details never sit in code. Our Next.js development page covers how the rest of the stack fits together, and how long an MVP takes covers the schedule.

Connections, regions and what stays in the repository

A small Next.js app opens a short-lived connection on each request. Both vendors document a pooled connection string for that pattern, and that string is the one the serverless runtime should use. Keep it in one data-access module so a later change of driver, or a move from one vendor to the other, touches one file. Read the current connection page on the vendor you pick before you wire the driver, because pool modes and what they allow with prepared statements change.

Put the project in a region close to the people using it. An app whose users are in India pays a latency tax on every query if the database sits in the United States, and that tax shows up as a slow page even when the SQL is small. The region is a setting at creation. Moving later means a migration, so choose it in the first week.

Schema and migrations belong in the repository, reviewed like any other change. A column added in a dashboard and never committed is the usual reason a fresh environment fails on the first request. Row-level rules, where you use them, are part of that same migration history, not a setting someone remembers. The application still checks authorisation in the server code that runs the request. The database rule is a second line, not a replacement for it.

Backups are part of the choice, not a later add-on. Confirm, on the plan you are about to buy, how you restore and how far back you can go. A free plan that cannot restore is fine for a throwaway prototype and the wrong place for the first customer record.

If you have to move later

Picking one vendor does not lock the application if the schema lives in the repository and the queries go through one module. A move is still a project. Treat it as one.

Export the schema and the data, and restore them into the new project before you change the application. Run the migration files against an empty database and confirm they build the same shape. A dashboard-only change that was never committed will be missing, which is the reason those changes belong in the repository from the first week.

Point a staging copy of the app at the new database and walk the paths that write: sign-up, the main record, a file upload if you use storage. Supabase storage and auth do not come with a plain Postgres move. If you used them, those pieces are a separate job, which is the trade you accepted when you chose the bundle. Neon has no equivalent to move away from, so an app that kept auth in its own code has less to rebuild.

Cut over when the staging copy matches, with the old database still available for the day. Update the pooled connection string in the one module, deploy, and watch the error log. A move done this way is a planned cutover with a fallback. A move done from a dashboard you cannot export is a rewrite.

Sources

Share

Planning something like this?

Tell us what you are trying to fix and we will tell you how we would approach it.

Choosing a database for your Next.js MVP?

We build Next.js products on managed Postgres, with the schema, migrations and hosting accounts set up in your name from the first week.

See our Next.js development

Questions about this topic

Both have a free plan. Supabase Pro is listed from $25/month with 8 GB of disk per project. Neon's Launch plan is usage-based, from $0.106 per compute-hour and $0.35 per GB-month, and Neon quotes about $15/month for a small, intermittent database. Prices change, so confirm on each pricing page. Quiet apps usually cost less on Neon.

Yes. Supabase's pricing page says free projects are paused after 1 week of inactivity and that the free plan is limited to 2 active projects. Projects on paid plans are not paused for inactivity.

Neon suspends compute after 5 minutes of inactivity and reactivates it automatically within a few hundred milliseconds when a query arrives. On the free plan the 5 minutes is fixed; on paid plans it can be turned off.

Both run standard Postgres, so a dump and restore moves your data. What takes work is anything built on provider extras, such as Supabase's auth tables or row-level security policies tied to its auth. Keep your queries in plain SQL or a standard ORM and the move stays small.

It depends on the product. If it needs sign-in, file storage and live updates from day one, Supabase covers them in one place. If it is a Next.js front end over Postgres with its own auth, Neon keeps the setup lean. We decide in scoping, and the account is created in your name.
WhatsAppCall