How to estimate and control a cloud bill
A subscription to a cloud app is easy to budget: users times the plan price. Infrastructure and platform services are different. They are metered, and the bill is the sum of many small charges that move with use. The good news is that for most small setups three meters make up most of the bill: compute, storage and egress. Estimate those, add the extras, and you have a number you can plan around.
Meter 1: compute time
A virtual server is billed for the time it exists in a running state, usually by the hour or second, at a rate set by its size (CPU and memory) and sometimes by the operating system license included.
Monthly compute = number of servers x hourly rate x hours running.
A server that never stops runs about 730 hours a month: 24 hours x 365 days is 8,760 hours a year, divided by 12 months is 730. That figure is the planning default in the Cloud Cost Calculator.
A worked example of why schedules matter: a test or training machine needed only 10 hours a day on 22 working days runs 10 x 22 = 220 hours a month. That is 220 / 730 = about 30 percent of the always-on hours, so it bills for about 70 percent fewer hours if it is stopped outside those times. Check how your provider treats a stopped server: compute charges normally stop, but its disks and any reserved addresses usually keep billing.
Meter 2: storage held
Storage is billed per GB per month (often written GB-month) for what you keep: server disks, file and object storage, snapshots and backups. Disks are usually billed on the size you provisioned, not how full they are, so a 500 GB disk holding 50 GB of data bills as 500 GB.
- Snapshots and backups add up. Ask whether your provider stores each snapshot as a full copy or only the changes since the last one, and how long each is kept.
- Units matter. Some bills and consoles use GB (1,000,000,000 bytes) and some use GiB (1,073,741,824 bytes, about 7.4 percent larger). The Data Storage Converter switches between them.
- Storage classes. Infrequent-access and archive tiers cost less to keep but charge more, or take longer, to read back. They suit backups you hope never to need, as long as you know the retrieval cost and delay before an emergency.
Meter 3: egress (data sent out)
Egress is data leaving the provider's network, most often to the internet: visitors downloading files, users syncing data to the office, backups copied out to another provider. Data coming in (ingress) is commonly free; data going out to the internet is usually charged per GB, and data moving between regions or zones may be charged too. Read your provider's pricing page for the exact rules.
A worked example: a 2 GB installer or video downloaded 300 times in a month is 2 x 300 = 600 GB of egress. If the console reports 600 GiB instead, that is 600 x 1.074 = about 644 GB. A one-off event such as restoring a large backup from the cloud, or moving to another provider, also creates egress, so plan for it.
The extras that surprise people
- Load balancers, gateways and managed databases, often billed by the hour whether busy or not.
- Public IP addresses, which some providers charge for, including ones not attached to anything.
- Logging and monitoring data, which grows quietly with retention settings.
- Support plans and software licenses billed through the provider.
- Taxes, and currency conversion if you are billed in another currency.
Putting it together
List each server and service with its size and hours, each disk, bucket and backup set with its GB, and an estimate of monthly egress. Put your own provider's current rates into the Cloud Cost Calculator, which adds compute, storage and egress into a monthly and yearly figure. Then add the extras above as a separate line. Rates change and vary by region, so use the pricing page for the region you actually run in, not a figure from an article.
Keeping the bill under control
- Set a budget and alerts on day one. Most cloud providers let you set a monthly budget with email alerts when spending or forecast passes a threshold. Send them to more than one person.
- Tag everything. Label each resource with an owner and purpose ("project: website", "owner: office manager"), so anything untagged stands out.
- Schedule non-production machines. Stop test and training servers outside working hours, as in the example above.
- Right-size after a month of data. If a server's CPU and memory stay low all month, a smaller size may do. Change one thing at a time, take a snapshot first, and watch performance afterward.
- Clean up carefully. Unattached disks, old snapshots and idle addresses keep billing. Before deleting anything, confirm with its owner what it is, and make sure it is not the only copy of any data; if unsure, take a backup or snapshot first and delete that later once you are certain.
- Consider commitments only for steady loads. Providers discount compute in exchange for committing to a year or more. That only saves money for servers you are sure will run all that time.
- Read the bill monthly. Compare each line with last month. A new line or a jump is easier to explain within weeks than after a year.
What not to cut
Do not save money by dropping backups, shortening backup retention below what you need to recover, turning off security logging, or removing redundancy that keeps a critical service up. Those savings tend to be repaid many times over in the first bad week. If cost and resilience conflict, write the trade-off down and decide it deliberately. Our disaster recovery guide explains how to work out what recovery you actually need.