Skip to content
dbexplore

FinOps · Supabase

Supabase cost optimization: the add-on sized for one spike, a disk that only grew, and a replica nobody uses.

Supabase makes the first purchase easy: a bigger compute size solves most symptoms. This is the FinOps view of what to try before it, why the disk stays large, and where replicas quietly add up.

A bill that rewards a bigger box

The add-on was sized for one spike. Disk went up and never came down. Supabase projects are easy to start and easy to grow, and each of those sentences describes a step that was easy at the time: click a larger compute size, let the disk expand, leave a replica running. None of them is wrong in isolation. Together they make a bill that follows the biggest day instead of the typical one.

What helps is an order of operations. Supabase’s own documentation says to tell hardware limits from software limits before upgrading, and the usual software limits are queries and connections. This page is the Supabase chapter of Postgres FinOps. It sets out how the platform meters a month and takes each leak in turn. How the platform watches the pooler and the plan ceilings is on the Supabase solutions page, and the shared method is in the cost optimization overview.

How Supabase meters a month

Every project is its own server. Compute is charged per hour on the size you pick, independent of how much the database is used, and the size also decides the connection limits and the disk throughput that come with it. The disk is billed on what you provision, in gigabyte-hours, and on paid plans it grows by itself when the database gets close to full. It is not given back by itself.

Read replicas are a second server with a bigger disk. The table below holds no prices. It states what each meter counts and how it behaves, so that the dashboards after it can be read against something.

  • Compute, per hour

    Behaviour
    metered
    What it means for the bill
    Each project runs a dedicated Postgres instance, and you are charged for its compute size by the hour whatever the database does. A part hour counts as a full hour, and a paused project accrues none.
  • Connection limits

    Behaviour
    flat
    What it means for the bill
    Set by compute size, one limit for direct database connections and a much larger one for pooler clients. A bigger add-on raises both, which is how a connection problem turns into a compute bill.
  • Disk size

    Behaviour
    metered
    What it means for the bill
    Charged by the gigabyte-hour on the size provisioned. On paid plans the disk grows on its own as the database fills, and it does not shrink during normal operation.
  • Disk performance

    Behaviour
    multiplies
    What it means for the bill
    IOPS and throughput above the included baseline are charged, need a Large compute size or above, and can be changed only about once every four hours.
  • Read replicas

    Behaviour
    multiplies
    What it means for the bill
    Each replica is a dedicated database. It runs on the primary’s compute size, carries a disk 1.25 times the primary’s billed from the first byte, and inherits the primary’s provisioned IOPS and throughput.

An order of checks before a bigger compute size

A compute size is the most expensive answer on the list and the quickest to reach for. Supabase’s own advice is a sequence. First the queries, because a statement that scans a large table without an index costs CPU that no add-on makes cheap. Then the connections: the direct ceiling is far smaller than the pooler’s, so the question is who opens connections and in which mode. Then the disk IO budget, which Supabase says tells you when a larger compute size really is the right answer. Only then the size itself.

The point of the order is restraint: a bigger compute size is the last answer, not the first.

Disk grown against database size

On a paid plan the disk expands automatically as the database nears full, and nothing in normal operation shrinks it. Supabase also documents why the reported number lags reality: deleted rows keep their space until vacuum reclaims it, so removing data does not immediately reduce disk usage. The disk is right-sized when the project is upgraded, and the database can be moved to a new project when waiting is not an option.

The disk is more than the database. It holds the write-ahead log too, which replicas and other replication also depend on, and a small amount of system data. The tiles set the disk against the database and price the free space.

Disk grown against database size

illustrative basisyour rate

A disk of which the database fills only a fraction.

Held by the database

about 30% of the disk

Free space

about 65% of the disk

Modeled cost of the free space

about $140 a month

your rate

Replica hours, and what each repeats

A Supabase read replica is a second database, not a view of the first. It runs on the same compute size as the primary, gets a disk 1.25 times the primary’s billed from the first byte, and inherits any extra provisioned IOPS and throughput. It is billed by the hour for as long as it runs, and it is outside the spend cap. A replica made for a launch week or a migration therefore costs a second server for as long as it stays.

Each replica is priced as the database it is. Whether it is worth keeping depends on what it serves, and removing it, or giving the reporting jobs a deliberate route to it, is a decision and never a change that happens on its own.

Four problems, in the words people use for them

These are the sentences from the review. Each card links to the page where that part of the platform is covered in depth.

What the product shows: The compute add-on and disk charges, each priced and tied back to the usage that drives it.

Where the rest of the method lives

Supabase sits next to Neon in the way people use it, for small projects and fast starts, and nothing like it in how it bills: a Supabase project does not suspend, so the hours are the same every month and the dials are the size, the disk and the replicas. The method is the same everywhere: attribute the dollars, queue and gate the fixes, put each number in front of its owner, and read every figure against the basis it carries. For how a fleet’s cost divides into the kinds that move with load and the kinds that do not, read how Postgres cost works on a fleet.

Questions about Supabase cost

Does a bigger Supabase compute add-on fix connection limits?

It raises them. Supabase documents a maximum for direct database connections and for pooler clients at every compute size, and both grow with the size. But Supabase also advises assessing whether a bottleneck is hardware-constrained or software-constrained, for example by optimizing the number of connections or examining query performance, before upgrading. Those come first.

Why does the disk not shrink when the data does?

Supabase documents that disks do not automatically downsize during normal operation, and that deleted rows may not reduce the reported disk usage until vacuum runs. Once the database is smaller, the disk is right-sized during a project upgrade, or the database can be moved to a new project. The disk tile shows how much of the allocation is data, log and free space.

What does a Supabase read replica cost compared with the primary?

It is a dedicated database. Supabase documents that it runs on the same compute size as the primary, carries a disk 1.25 times the primary’s that is billed from the first byte, and inherits the primary’s provisioned IOPS and throughput. Replicas are also outside the spend cap. The platform prices each one as the database it is.

Will it resize my project or remove a replica for me?

No. A compute change, a disk right-size or a replica removal is a recommendation with its dollar delta and its basis. A person approves it and the ledger records who did. A compute change brings a short downtime, and it goes through the approval gate like any other change.

See whether your Supabase add-on is the answer or the symptom.

A pilot starts read-only with a monitoring role and shows what sits behind the compute size, the disk and replica hours, all modeled and labelled with their basis.