Table of Contents [expand]
Last updated May 18, 2026
Heroku Postgres Advanced is in limited general availability. To start creating and using Advanced databases, open a ticket with Heroku Support to request access. Subscribe to our changelog to stay informed of when Heroku Postgres Advanced is generally available.
Heroku Postgres Advanced uses different methods of calculating billing depending on the usage. This article explains how billing is calculated for compute usage and storage usage for Advanced databases.
This article covers usage and billing on Postgres Advanced databases. For usage and billing information on non-Advanced-tier databases, see Usage & Billing.
View Usage
Heroku Enterprise customers can export CSVs to view Heroku Postgres Advanced database usage. In the Downloadable Usage section of the Heroku Enterprise Usage dashboard, select a given month from the dropdown menu and click Download as CSV. In the CSV, Advanced database usage is included in the Data Add-on Usage field.
Compute Billing
Heroku Postgres Advanced databases calculate the compute usage from wall-clock time. A compute instance accrues usage as long as it’s enabled in a database cluster. Heroku prorates all costs to the second, calculated based on when you created or destroyed the compute instance.
Compute usage on Heroku Postgres Advanced databases are billed by the compute-month. For example:
- A
32G-Performanceinstance is $900 per compute-month. Using one instance for 15 out of 30 days, your compute usage is billed as 0.5 compute-months and a cost of $450 (0.5 compute-months * $900).
Storage Billing
Storage on Heroku Postgres Advanced databases is billed by the gigabyte-month (GB-month). A GB-month measures the amount of storage your database used in a 30-day month. For example:
- Your database usage is at 90 GB throughout all 30 days of the month. Your storage usage is billed as 90 GB-month (90 GB * (30/30).
- Your database uses 90 GB for 20 out of 30 days. Your storage usage is billed as 60 GB-month (90 GB * (20/30).
There are three components that calculate the storage cost on a Heroku Postgres Advanced database:
(Average Storage Used - Average Storage Included) * Storage Rate
- Average Storage Used: The amount of storage used in the month divided by the days the database was used for the month.
- Average Storage Included: The amount of storage included divided by the days the database was used for the month. All Advanced databases include up to 100 GB of storage.
- Storage Rate: The cost for storage usage exceeding the included amount is $0.20 per GB-month.
In your invoice, there are two entries for Optimized Storage that calculate the total storage used and cost. The first Optimized Storage line is the average storage included amount, and the second Optimized Storage line is the average storage used amount. If your average storage used amount is less than the average storage included amount, there’s no cost for database storage for that month.
Here are some examples:
| Database 1 | Database 2 | Database 3 | |
|---|---|---|---|
| Storage Used | Day 1-7: 200 GB Day 8-30: 50 GB Average storage used: 85 GB-month ((200 GB * 7 days)+(50 GB * 23 days))/30 days |
Day 1-7: 200 GB Day 8-22: 50 GB Day 23-30: 200 GB Average storage used: 125 GB-month ((200 GB * 7 days)+(50 GB * 15 days)+(200 GB * 8 days))/30 days |
Day 1-7: not provisioned Day 8-30: 120 GB Average storage used: 92 GB-month ((120 GB * 23 days))/30 days |
| Storage Included | Days used: 30 Included storage: 100 GB Average storage included: 100 GB-month 100 GB * (30 days/30 days) |
Days used: 30 Included Storage: 100 GB Average storage included: 100 GB-month 100 GB * (30 days/30 days) |
Days used: 23 Included Storage: 100 GB Average storage included: 76.67 GB-month 100 * (23 days/30 days) |
| Total Storage Cost | No additional costs Average storage used (85 GB-month) < Average storage included (100 GB-month) |
Additional cost: $5.00(125 - 100) * $0.20 |
Additional cost: $3.07(92 - 76.67) * $0.20 |
| Total Compute Cost | 32G-Performance: $900 per compute-month Days used: 30 Compute Cost: $900 900 * (30 / 30) |
16G-Performance: $500 per compute-month Days used: 30 Compute Cost: $500 500 * (30 / 30) |
32G-Performance: $900 per compute-month Days used: 23 Compute Cost: $690 900 * (23 / 30) |
| Total Storage and Compute Cost | $900 | $505 | $693.74 |