Usage & Billing
Last updated December 03, 2024
Table of Contents
Heroku calculates billing based on wall-clock usage. This article explains the billing calculations. For specific guidance on minimizing your costs for different environments, see Optimizing Resource Costs.
Billing Cycle and Current Usage
Heroku charges based on usage, except for the Eco Dynos Plan. In any given month, you receive the bill for the previous month of use, not the current month. All usage is included and charged for, including any apps you created for staging, tutorial, or testing purposes.
To see your balance for the current month, in the Billing Information
section on your account’s Billing
tab, look at Current Usage
. It’s updated nightly, so it’s accurate as of the the previous day, up to 00:00:00 UTC time. Heroku Enterprise customers can look at their Enterprise Account Usage Dashboard and export CSVs.
The Eco Dyno Plan is a flat fee monthly subscription. You are charged for this plan for each month that you are subscribed, whether you used any Eco dynos that month or not. Eco dynos are unavailable for Heroku Enterprise. See Eco Dynos Plan for more info.
Dyno Usage and Costs
Heroku computes usage from wall-clock time, not CPU time. Any dynos scaled above 0 accrue usage, regardless of traffic or activity. Heroku prorates all costs to the second. You can scale down your dynos when they’re not in use.
For example, a Basic dyno costs US$7 per month. Running 1 Basic dyno costs roughly $0.01 per hour. If you scale your formation to 1 Basic dyno starting on 2022-01-01 00:00:00 and scale down to zero at 2022-01-01 02:00:00, it costs you approximately $0.02 for those 2 hours.
When executing a one-off dyno with heroku run
or the Heroku Scheduler, a dyno provisions for your command. The time spent executing the command accrues usage.
Dynos used in your review apps also count towards your usage.
The max price per month shown in the table is the maximum price you’re charged if you run the dyno 24 hours a day, 7 days a week since your last billing cycle.
Dyno units are also shown for Heroku Enterprise customers.
Dyno Type | Dyno Price Per Hour | Max Price Per Month | Dyno Units Per Month |
---|---|---|---|
Eco | ~$0.005/hour | $5 for 1,000 dyno hours per month, shared across all your Eco dynos |
N/A |
Basic | ~$0.01/hour | $7 | 0.28 |
Standard-1X | ~$0.03/hour | $25 | 1 |
Standard-2X | ~$0.06/hour | $50 | 2 |
Performance-M | ~$0.34/hour | $250 | 8 |
Performance-L | ~$0.69/hour | $500 | 16 |
Performance-L (memory-optimized) | ~$0.69/hour | $500 | 16 |
Performance-XL | ~$1.04/hour | $750 | 30 |
Performance-2XL | ~$2.08/hour | $1,500 | 60 |
For more information about the different dyno types, see Dyno Types.
The Eco dyno plan provides 1,000 dyno hours for $5 per month. All Eco dynos in your account share this dyno hours pool. The Eco dynos plan always renews on the first day of each month. If you subscribe to Eco after the first day, you’re charged the full $5 for that month.
For tips on optimizing your resources, see the Optimizing Resource Costs and Optimizing Dyno Usage article.
Private and Shield Dyno Usage and Costs
Dyno units are shown for Heroku Enterprise customers for each dyno size:
Dyno Type | Dyno Units Per Month |
---|---|
private-s | 5 |
private-m | 10 |
private-l | 20 |
private-l-ram | 20 |
private-xl | 30 |
private-2xl | 60 |
shield-s | 6 |
shield-m | 12 |
shield-l | 24 |
shield-l-ram | 24 |
shield-xl | 36 |
shield-2xl | 72 |
Heroku Data Add-Ons Usage and Costs
A data add-on accrues usage as long as it’s enabled. Heroku prorates all costs to the second, calculated based on when you created or destroyed an add-on.
For example, an Essential-0 Heroku Postgres database costs US$5 per month. If you create an Essential-0 Postgres database and delete it after 15 days, it costs you roughly US$2.50.
Destroying an add-on also destroys all associated data.
For pricing, see the Elements Marketplace. The price per add-on per month shown is the maximum that you’re charged if you run the dyno 24 hours a day, 7 days a week since your last billing cycle.
For tips on optimizing your Postgres database, see Heroku Postgres Database Tuning.
Other Add-Ons Usage and Costs
Heroku prorates all costs to the second, calculated based on when you created or destroyed an add-on. For pricing, see each add-on’s individual Elements Marketplace page. The price per add-on per month shown is the maximum that you’re charged if you run the dyno 24 hours a day, 7 days a week since your last billing cycle.
Transferring to Heroku Enterprise
When you become a Heroku Enterprise customer, you have the option to move your existing Heroku Teams to your Enterprise licenses. If you transfer your teams, we’ll invoice you for any usage incurred prior to transferring it to your Enterprise account. Any usage incurred after the transfer counts against your Enterprise licenses.