Cloud billing units
What does a cloud bill measure?
Cloud billing converts measured resource usage into charges. Imagine a small bookstore renting a virtual machine (VM), storing cover images and serving requests. Each service can have its own meter: elapsed compute time, stored capacity, operations or transferred data. A meter measures a quantity; a rate specifies the price per billing unit. An estimate predicts charges from assumptions; an invoice records billed charges for a period. They need not match.
For a simple linear rate, multiply the billed quantity by its matching rate. Add the separate charges for the workload. Start by writing down units; multiplying hours by a price per GB is not meaningful.
Read the units before multiplying
| Meter | What to count | Example unit |
|---|---|---|
| Instance time | Time a VM is billable | instance-hour |
| CPU time or allocation | Billed vCPUs multiplied by time | vCPU-hour |
| Storage | Capacity measured over a billing period | GB-month |
| Operations | Requests in billed groups | per 1,000 requests |
| Transfer | Bytes moved along a priced path | GB |
| Managed service | Service-specific capacity or usage | instance-hour, request or other unit |
An instance-hour is not a vCPU-hour: a two-vCPU machine running for 100 hours uses 200 allocated vCPU-hours, but only 100 instance-hours. A VM rate may already include CPU and memory, so do not bill those again without evidence. A GB is 1,000,000,000 bytes; a GiB is 1,073,741,824 bytes. Match the provider's actual definition. GB-month is a capacity-over-time measure, not a download count. In this lesson only, assume a 30-day month, linear storage proration and no rounding or minimum charge. Real meters may differ.
Worked example: a bookstore for one month
All rates below are fictional USD teaching values, not quotes from AWS, Azure or Google Cloud. Assume the VM runs 300 hours, 40 GB is stored throughout the month, 20,000 requests occur and 15 GB of billable outbound transfer is measured.
| Item | Quantity × fictional rate | Cost (USD) |
|---|---|---|
| VM | 300 hours × 0.06 per hour | 18.00 |
| Storage | 40 GB-month × 0.10 | 4.00 |
| Requests | 20,000 ÷ 1,000 × 0.02 | 0.40 |
| Transfer | 15 GB × 0.12 | 1.80 |
| Managed monitoring | 1 month × 3.00 | 3.00 |
| Total | Sum of five items | 27.20 |
If traffic doubles but compute time and stored capacity stay unchanged, the request and transfer costs double: the new total is 29.40, not 54.40. This is a sensitivity scenario, not a prediction that capacity will actually remain sufficient. At 720 hours the same VM alone costs 43.20. No account or real resource is required.
Storage time, pricing tiers and discounts
If 60 GB is stored for 15 days of the fictional 30-day month and then deleted, its time-weighted quantity is 60 × 15 ÷ 30 = 30 GB-month. At 0.10 per GB-month it costs 3.00. This assumes no minimum retention fee, replication surcharge or other meter. Some services instead charge for provisioned capacity or different time increments.
A tiered rate may charge the first portion of usage at one rate and the remainder at another. For example, 130 GB with the first 100 GB at 0.10 and the next 30 at 0.05 costs 11.50 under a fictional marginal tier model. Do not multiply every GB by the final tier's rate unless the published pricing rules say to do so. Some plans include a recurring fixed charge plus usage. A commitment exchanges a term or spend obligation for eligible discounts; idle commitments can still cost money. A credit offsets eligible charges rather than eliminating all usage.
From estimate to invoice
Record the provider, service edition, region, currency, rate date, billing unit, expected quantity, applicable tier and discount. Add separate rows for backups, logs, network gateways, public IPs, software licensing, support and tax where applicable. Check both ingress and egress definitions and cross-zone or cross-region transfer rules rather than assuming all traffic is free. Reconcile estimated and actual quantities first, then rates, discounts and omitted items. Use current official pricing documentation or calculators for real proposals; calculator outputs are not guaranteed invoices. Do not add a generic tax rate without knowing the applicable billing jurisdiction.
Practice: change the VM hours to 200 and storage to 50 GB-month; leave the other bookstore inputs unchanged. The new estimate is 22.20 USD (12 + 5 + 0.40 + 1.80 + 3). Explain which costs are independent of VM runtime. Next, learn how to detect remaining charges and control spending before any live lab.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud billing units — knowledge check
Choose the best answer for each offline scenario.
Two vCPUs are allocated for 100 hours. How many allocated vCPU-hours is that?
A fictional service charges 0.02 USD per 1,000 requests. What do 20,000 requests cost?
Under linear 30-day proration, 60 GB stored for 15 days represents what quantity?
In the bookstore example, only request and transfer quantities double. What is the new total?
Why might a real invoice exceed a monthly estimate?