Supabase egress is the data your project sends out to clients: query results from the Data API, files from Storage, Realtime messages, and Auth and Edge Function responses. The Free plan includes 5 GB uncached and 5 GB cached egress per billing cycle. Past that, a Free organization can be restricted, never billed; a paid plan can pay per GB.
What is Supabase egress? Every byte your project sends out
Supabase egress is every byte a project sends to a connected client, counted across Database, Auth, Storage, Edge Functions, Realtime, the shared pooler and log drains. It accumulates over the billing cycle against the Unified Egress Quota, which every service draws from, and resets when the next cycle starts.
Egress in Supabase is the meter your invoice prints as Egress GB, with a second line, Cached Egress GB, for Storage files served from the CDN. On Supabase, egress has its general cloud meaning, data leaving a provider’s network, or in the words of Supabase’s troubleshooting page, data “leaving the Supabase platform”. Every byte counted here is also a byte a user waited for, so egress belongs with the rest of web performance optimization for an AI-built app: a smaller response costs less and arrives sooner.
Supabase’s egress usage page splits the meter by the service that sent the bytes. Two of the names are the labels you will see on the dashboard: Database Egress for the PostgREST API and Shared Pooler Egress for Supavisor.
| Service | What counts as its egress | Name Supabase uses |
|---|---|---|
| Database (Data API) | Query results sent back through PostgREST, the API the client SDKs call; this is PostgREST egress | Database Egress (dashboard label) |
| Shared pooler | Data returned through Supavisor, the shared connection pooler; not counted a second time as database egress | Shared Pooler Egress (dashboard label) |
| Auth | Session data, tokens and user details sent when users sign in, sign out or sign up | Auth Egress |
| Storage | Files, images and other assets downloaded from buckets | Storage Egress; cached egress when served from the CDN |
| Edge Functions | The response a function sends back to the client | Edge Functions Egress |
| Realtime | Updates pushed to clients for the events they subscribe to | Realtime Egress |
| Log drains | Each log sent to a connected log drain | Log Drain Egress |
Usage that has already been served stays on the meter. Supabase says the optimizations it lists lower future egress only, so a fix made today shows up in the remaining days of the cycle and in the next one.
What is cached egress?
Cached egress is Storage data served from Supabase’s CDN on a cache hit. It has its own quota and its own lower overage price, separate from uncached egress, so a busy image bucket with good caching can stay inside the cached quota while API traffic draws on the other one.
On the Free plan the two allowances sit side by side: 10 GB of bandwidth, 5 GB cached plus 5 GB uncached, so the 5 GB cached egress figure on a Free usage page is its own budget. Past the included amount on paid plans, Supabase charges $0.09 per GB uncached and $0.03 per GB cached. The cached meter only applies to Storage.
Cached egress can run high while uncached stays low. Objects in a public bucket need no per-user authorization check, which gives them a better cache hit rate than objects in a private bucket, so an app that serves most of its images publicly can fill the cached meter first. Each Storage response says which way it went in its cf-cache-status header: HIT means the CDN sent the file, MISS means the CDN node had to fetch it from the origin. Supabase’s Storage bandwidth page gives a query for the dashboard’s Explorer, run with Logs as the query source, that counts requests per Storage object and flags which ones were cache hits.
What happens when you go over the egress limit
An organization that goes over the egress limit on the Free plan, or on Pro with the spend cap on, gets a notification and a grace period first. If usage stays over, Supabase can restrict the organization: paused projects, read-only databases, or a 402 answer to every API request. The billing FAQ lists no deletion among the restrictions.
Supabase sets the egress limit per organization and per billing cycle: every project in the organization draws on the same allowance, so the busiest project can exceed the egress quota for all of them. The notification goes to the organization’s billing email address. What happens next depends on the plan and on one setting, the spend cap, which is on by default for Pro.
| Plan and spend cap | What happens past the quota | How it clears |
|---|---|---|
| Free | A notification, a grace period, then restrictions if usage keeps exceeding the quota; no over-usage charge on Free | At the start of the next billing cycle, or at once on an upgrade to Pro |
| Pro, spend cap on | A notification and a grace period; further egress is disallowed until the next cycle, and restrictions apply if usage keeps exceeding the quota | At the start of the next billing cycle, or at once when the spend cap is turned off |
| Pro with the spend cap off, or Team | ”Your projects will continue to operate after exceeding the quota for a usage item.” Extra usage is charged per unit: $0.09 per uncached GB, $0.03 per cached GB | Nothing to clear; the overage is on the next invoice |
Two details in Supabase’s billing FAQ matter after a first overage. Once a grace period has ended, the dashboard keeps showing a notice that it is over, even after usage drops back under the limits, and a second overage brings restriction with no new grace period; the notice clears on its own after usage stays under the limits for multiple billing cycles. Restrictions are generally applied to every project of the organization, not only the one that sent the bytes.
Plan prices, and whether the spend cap is the right call for a growing app, sit with what each Supabase plan includes and costs.
Service for this project is restricted due to the following violations
The message comes in two forms, one per egress quota:
Service for this project is restricted due to the following
violations: exceed_egress_quota. The project owner must upgrade
their plan or remove spend caps to restore service.
Service for this project is restricted due to the following
violations: exceed_cached_egress_quota. The project owner must
upgrade their plan or remove spend caps to restore service.
Supabase documents the pattern on its status-code page: a restricted project answers with a 402 status and a description, and an exceed_* code in it means the project has kept exceeding the usage limits of a quota. Going by their names, exceed_egress_quota covers the uncached quota and exceed_cached_egress_quota the cached one. Either way the Fair Use Policy now applies, and the billing FAQ lists four forms a restriction can take: paused projects, databases switched to read-only mode, new project launches and transfers disabled, and a 402 status code for all API requests.
A database in read-only mode refuses writes, so the first visible symptom can be a failed save with an error such as cannot execute INSERT in a read-only transaction. Data deletion is not one of the four forms, and the status-code page adds that you keep access to your data through the Supabase dashboard while the Fair Use Policy applies.
There are two ways to clear it now: upgrade a Free organization to Pro, or turn the spend cap off on Pro. Otherwise the restriction lifts when the quota refills at the start of the next billing cycle, though there may be a short delay after the reset.
What does 5GB egress mean? A worked calculation
A 5 GB egress quota covers about 10,500 responses of 500 KB, or about 210,000 responses of 25 KB, in one billing cycle, by our arithmetic. The quota stays the same either way; the size of each response decides how many requests it pays for.
Supabase’s own method is to multiply the number of requests by the size of the file. We turn that into one line of our own arithmetic, payload KB × requests ÷ 1,048,576 = GB, counting 1 GB as 1,048,576 KB; Supabase’s docs don’t say which unit convention the meter uses, so read each cell below as a rough count.
| Response size | Responses per 5 GB | Responses per 250 GB |
|---|---|---|
| 500 KB | about 10,500 | about 524,000 |
| 100 KB | about 52,000 | about 2.6 million |
| 25 KB | about 210,000 | about 10.5 million |
Read the table as the meaning of each quota in requests: 5 GB egress on Free is the middle column, and 250 GB egress, Pro’s included uncached quota with a separate 250 GB for cached, is the right-hand one. For a screen that makes about ten requests per load, we’d divide every cell by ten before reading it as page loads.
How to find what is eating your egress
The invoice cannot name the query: it shows Egress GB and Cached Egress GB, not requests. The trail runs from the usage page down to the code; the first two steps follow the debugging advice on Supabase’s own egress page.
- 01 Open the organization's usage page, pick the project from the dropdown, and hover over a date in the Total Egress section to see that day's breakdown by service. The largest service tells you where to look next.
- 02 For Database Egress, open the Query performance view under Advisors and read the most frequent queries with the average number of rows each returns. For API paths, open Explorer, select Logs as the query source and query API Gateway events to find the most requested paths; those logs carry no response sizes, so rank by request count.
- 03 Open the busiest screen of the app with the browser's Network panel recording, and note each request's Size (response headers plus body, as delivered) and how many requests one page load makes.
- 04 Put the largest response's size and its number of requests per cycle through the formula from the calculation above to see how much of the quota that one call uses.
The unbounded select that eats egress can also be a slow query, and the speed side of that problem is in is Supabase slow? the five causes.
How to reduce egress on Supabase, cause by cause
Six patterns follow, each with the line of the usage breakdown it shows on and the fix. The fixes come from Supabase’s documentation for its client library, Storage, the Smart CDN and Realtime.
Every column of every row: select(’*’) with no limit
This one shows as Database Egress. A list screen that calls select('*') pulls every column of every matching row, including long text and JSON columns the screen never draws, and Supabase’s first optimization tip is to reduce the number of fields or entries selected. Ask for the columns the screen renders and page with .range() or .limit(); .range() respects the query order and, per the select reference, could behave unexpectedly without one, so give it an .order().
// Before: every column, up to the project's row cap
const { data } = await supabase.from('orders').select('*')
// After: four columns, 20 rows per page
const { data } = await supabase
.from('orders')
.select('id, status, total, created_at')
.order('created_at', { ascending: false })
.range(0, 19)
By default a Supabase project returns at most 1,000 rows per request, a setting you can change in the project’s API settings. That cap limits one call, not a client that fetches page after page or reloads the same list on every visit. The opposite mistake, one request per row, adds the headers of every response on top of the rows; that pattern is the N+1 query problem.
Full-size images sent to small screens
This one shows as Storage Egress, cached or uncached. A photo uploaded straight from a phone and shown as a small avatar sends every pixel of the original on every view. The fix is to store or serve the size the layout renders, in a modern format. Supabase’s image transformations resize images on the fly and return WebP to browsers that support it, which Supabase says lowers the egress sent to users; image resizing is currently enabled for Pro Plan and above. On Free, resize before upload. Formats, compression and sizes are covered step by step in the image optimization checklist for a web app.
Signed URLs that defeat the CDN cache
This one shows as uncached Storage Egress where you expected cached. Supabase’s Smart CDN treats each signed URL’s token as its own cache key, so the first request for any given signed URL is a miss, and “If you generate a new signed URL on every request, the cache will never be warm and every request hits the origin.” Smart CDN caching is on automatically for Pro Plan and above.
The fix is to create a signed URL once, keep it for its lifetime and reuse it, or to serve files that carry no per-user access restriction from a public bucket, as the same page advises. Before moving anything public, check it against signed links and bucket settings. Cache lifetimes and invalidation in general are covered in caching strategies for web applications.
Polling loops and chatty Realtime subscriptions
A setInterval or a repeating effect that refetches the same rows every few seconds shows as Database Egress and multiplies it by every open tab. Moving the screen to Realtime swaps those refetches for pushes, which count as Realtime Egress. Subscribe to changes instead of polling, or poll less often, and give each subscription a filter: Realtime evaluates the filter on the server, so filtered-out events never leave the database. Connection and message limits for Realtime are in Supabase Realtime limits and diagnosis.
Writes that send the whole row back
This one shows as Database Egress, or as Shared Pooler Egress for server code on the pooler. In supabase-js, .insert(), .update(), .upsert() and .delete() return no rows unless you chain .select(), and a bare .select() sends the modified rows back. Chain .select('id') when the screen needs only the id, or leave it off. For an ORM, Supabase’s advice is to configure it not to return the entire row if the code does not need it.
Backups and dumps pulled over the network
A dump run through Supavisor shows as Shared Pooler Egress: Supabase’s egress page lists manual backups through Supavisor among the things to trim, by removing unneeded tables or running them less often. Whether a dump over a direct connection counts, and under which label, is not stated in Supabase’s docs, so check the usage page the day after one run. A scheduled dump repeats that cost on every run. The backups themselves are covered in Supabase backups, and how to restore one.
How to check your own project before the next billing cycle
A Supabase egress check before the next billing cycle takes four readings: the usage page split by service, the largest responses in the browser’s Network panel, the cache status header on Storage files, and a usage alert that reaches a person before the quota runs out. After each fix, the readings are taken again.
- 01 Save the usage page's breakdown by service at the same point in each billing cycle, so one cycle can be set against the next.
- 02 List the five largest responses on the busiest screen, with their sizes from the Network panel.
- 03 Open three Storage files and read the cf-cache-status header on each. A MISS on a file that should be cached points to the signed URL pattern above.
- 04 Confirm that a person reads the organization's billing email address, and set up your own usage alert for an earlier warning.
- 05 After each fix, compare the next week's usage with the saved breakdown.
Check 4 matters because Supabase’s own notice arrives when the quota is already exceeded, and its cost-control page says the spend cap does not allow for notifications when certain costs are reached. An earlier warning has to come from your side, and the app’s other metered services need the same check; spend alerts on every metered API covers the setup.
In the Production Hardening Sprint, three of the deliverables that cover this ground come with checks that match the ones above. Deliverable 2.7 is verified this way: trigger a test threshold and confirm the alert reaches the designated owner. The check for deliverable 9.4 is to compare transferred sizes and inspect rendered images at intended display dimensions. Deliverable 9.1, appropriate caching, is verified this way: compare cache hits and misses, test invalidation, and verify tenant separation.
Where the sprint does this
If the app has paying users, and the bill, the cache and the image pipeline all need work before a launch or a growth push, start with a free audit: a video call where we talk through your project’s usage with you and weigh up which source of egress to tackle first. The work itself is our Production Hardening Sprint, which makes a working Supabase app production ready through a published scope of 123 deliverables, and four of them sit on this page. Our engineers configure spend or usage alerts for every metered API (2.7), cache repeated reads where it is safe, with explicit invalidation and customer-data boundaries (9.1, appropriate caching), optimize image dimensions, formats, compression, and delivery while preserving useful quality (9.4), and handle the file storage lifecycle as deliverable 4.14. Hosting, paid tools, and API usage remain in your accounts. Your app’s current framework and hosting setup are the starting point.
Common questions about egress on Supabase
What is egress?
Egress is data leaving a provider’s network for the outside world. On Supabase it is every byte a project sends to connected clients, billed as Egress GB, or as Cached Egress GB for Storage files served from the CDN.
Is egress the same as bandwidth?
Yes, for a Supabase bill. Supabase’s troubleshooting page describes egress as “also known as bandwidth”, and its billing FAQ calls egress the total bandwidth quota available to each organization.
What is the egress limit for Supabase?
The Free plan’s egress limit is 5 GB uncached plus 5 GB cached per billing cycle; Pro and Team include 250 GB of each, and Enterprise is custom. The quota belongs to the organization, so all of its projects share it.
Does Supabase get expensive?
It can, when usage passes the plan quotas on a plan that pays overage: Team, or Pro once its spend cap is turned off. Egress past the quota costs $0.09 per uncached GB and $0.03 per cached GB. In Supabase’s own billing example, a Pro organization 50 GB over its uncached quota and 550 GB over its cached quota pays $4.50 and $16.50 for egress, on a $51 invoice that also carries the plan fee and compute.
Is your Supabase bill climbing with traffic?
Egress grows quietly as users load images, files and query results, and the first sign is often a restricted project or a larger invoice. Bring it to an audit: we go over how your app sends data out and name the likely sources with you. You come away knowing which leak to plug first.
Book a free audit →
Free · 30 minutes · No code access needed