Usage & Billing
Last updated October 11, 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.
This article doesn’t apply to Heroku Enterprise accounts. For more information, see Heroku Enterprise.
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.
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. 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 Type | Dyno Price Per Hour | Max Price Per Month |
---|---|---|
Eco | ~$0.005/hour | $5 for 1,000 dyno hours per month, shared across all your Eco dynos |
Basic | ~$0.01/hour | $7 |
Standard-1X | ~$0.03/hour | $25 |
Standard-2X | ~$0.06/hour | $50 |
Performance-M | ~$0.34/hour | $250 |
Performance-L | ~$0.69/hour | $500 |
Performance-L (memory-optimized) | ~$0.69/hour | $500 |
Performance-XL | ~$1.04/hour | $750 |
Performance-2XL | ~$2.08/hour | $1500 |
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.
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.