Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

4.0 KB
Raw Blame
---
id: 'manage-usage-branching'
title: 'Manage Branching usage'
---

## What you are charged for

Each [Preview branch](/docs/guides/deployment/branching) is a separate environment with all Supabase services (Database, Auth, Storage, etc.). You're charged for usage within that environment—such as [Compute](/docs/guides/platform/manage-your-usage/compute), [Disk Size](/docs/guides/platform/manage-your-usage/disk-size), [Egress](/docs/guides/platform/manage-your-usage/egress), and [Storage](/docs/guides/platform/manage-your-usage/storage-size)—the same as the project you branched from.

<Admonition type="note">

Usage by Preview branches counts toward your subscription plan's quota. Branches are **not** covered by the [Spend Cap](/docs/guides/platform/cost-control#spend-cap).

</Admonition>

## How charges are calculated

Refer to individual [usage items](/docs/guides/platform/manage-your-usage) for details on how charges are calculated. Branching charges are the sum of all these items.

### Usage on your invoice

Compute incurred by Preview branches is shown as "Branching Compute Hours" on your invoice. Other usage items are recorded against the branch itself and count toward your organization total, but are not listed separately per branch on your invoice. To see them, select the parent project on the [usage page](/dashboard/org/_/usage), then select the branch from the branch list.

## Pricing

<$Partial path="billing/pricing/pricing_branching.mdx" />

## Billing examples

The project has a Preview branch "XYZ", that runs for 30 hours, incurring Compute and Egress costs. Disk Size usage remains within the 8 GB included in the subscription plan, so no additional charges apply.

| Line Item                      | Costs                      |
| ------------------------------ | -------------------------- |
| Pro Plan                       | <Price price="25" />       |
|                                |                            |
| Compute Hours Small Project 1  | <Price price="15" />       |
| Egress Project 1               | <Price price="7" />        |
| Disk Size Project 1            | <Price price="3" />        |
|                                |                            |
| Compute Hours Micro Branch XYZ | <Price price="0.4" />      |
| Egress Branch XYZ              | <Price price="1" />        |
| Disk Size Branch XYZ           | <Price price="0" />        |
|                                |                            |
| **Subtotal**                   | **<Price price="51.4" />** |
| Compute Credits                | -<Price price="10" />      |
| **Total**                      | **<Price price="41.4" />** |

## View usage

You can view Branching usage on the [organization's usage page](/dashboard/org/_/usage). The page shows the usage of all projects by default. To view the usage for a specific project, select it from the dropdown. You can also select a different time period.

<Image
  alt="Usage page navigation bar"
  src={{
    light: '/docs/img/guides/platform/usage-navbar--light.png',
    dark: '/docs/img/guides/platform/usage-navbar--dark.png',
  }}

width={1546}
height={208}
/>

In the Usage Summary section, you can see how many hours your Preview branches existed during the selected time period. Hover over "Branching Compute Hours" for a detailed breakdown.

<Image
  alt="Usage summary Branching Compute Hours"
  src={{
    light: '/docs/img/guides/platform/usage-summary-branch-hours--light.png',
    dark: '/docs/img/guides/platform/usage-summary-branch-hours--dark.png',
  }}

width={2258}
height={1360}
/>

## Optimize usage

- Merge Preview branches as soon as they are ready
- Delete Preview branches that are no longer in use
- Check whether your [persistent branches](/docs/guides/deployment/branching#persistent-branches) need to be defined as persistent, or if they can be ephemeral instead. Persistent branches will remain active even after the underlying PR is closed.

## FAQ

### Do Compute Credits apply to Branching Compute?

No, Compute Credits do not apply to Branching Compute.