CC

Cloud Cost Calculator

Your monthly and yearly cloud bill from compute hours, storage, data egress, requests and serverless functions, at the prices on your provider's price list, with each part's share.

Technology & ComputingRuns in your browser

Result…

Virtual machines or containers billed by the hour. 0 to skip.

h

Running all month is about 730 hours (365 × 24 ÷ 12).

$

From your provider's price list for the size and region you use. Every starting price here is only an example.

GB

The average amount stored over the month (GB-months).

$
GB

Subtract any free allowance your provider gives.

$
million

API, storage or CDN requests billed per million.

$
million

Function calls. 0 to skip serverless.

ms
MB

Most providers count GB-seconds with 1 GB = 1024 MB; check yours.

$
$

 

…

How it's calculated

Compute = instances × hours × price per hour
Storage = GB-months × price per GB-month · Egress = GB out × price per GB · Requests = millions × price per million
Serverless = invocations × duration (s) × memory (GB) × price per GB-second + millions of invocations × price per million
Monthly total = sum of the parts · Yearly = monthly × 12

Cloud providers bill each resource by its own unit, so the bill is a sum of quantity × price lines. Compute is charged per instance-hour (a month running nonstop is about 730 hours). Storage is charged per GB-month: 500 GB kept all month is 500 GB-months. Egress is data sent out to the internet, usually charged per GB, while data coming in is often free. Requests are charged per million. Serverless functions are charged for GB-seconds (memory in GB times run time in seconds, with 1 GB = 1024 MB on most platforms) plus a fee per million calls. Every price here is yours to enter: they differ by provider, region and plan, and change over time.

Your numbers, step by step

    About the Cloud Cost calculator

    This cloud cost calculator adds up a monthly cloud bill from its usual parts: compute (instances × hours × price per hour), storage (GB-months × price), data egress (GB sent out × price), requests (millions × price per million) and serverless functions (GB-seconds and invocations, each at its own price). You type in every price from your own provider's price list, for your region and plan, so the estimate fits any provider and any currency. It shows the monthly and yearly totals and each part's share of the bill, which makes it easy to see where savings would matter most. Developers planning a launch, start-ups budgeting for growth and teams comparing an always-on server with serverless can all use it. Each line of the working is shown with your numbers, and a chart breaks the bill down by component.

    How to use it

    1. Enter the “Instances (servers)”, the “Hours a month each” (about 730 for all month) and the “Price per instance-hour”.
    2. Enter the “Storage” in GB and the “Price per GB-month”.
    3. Enter the “Data egress (out to the internet)” in GB and its price, after any free allowance.
    4. Enter the “Requests a month” in millions and the “Price per million requests”.
    5. For serverless, enter the invocations, “Average duration”, “Memory per function” and both prices; use 0 for any part you don't use.

    Worked example

    Three instances run all month (730 h) at 0.08 an hour: 3 × 730 × 0.08 = 175.20. Storing 2,000 GB at 0.02 per GB-month costs 40, sending 1,500 GB out at 0.06 costs 90, and 50 million requests at 0.40 per million cost 20. Ten million function calls of 150 ms at 256 MB use 10,000,000 × 0.15 × 0.25 = 375,000 GB-seconds; at 0.00002 that is 7.50, plus 10 × 0.30 = 3 for the calls, so 10.50. The month comes to 335.70 and the year to 4,028.40, with compute at about 52% of the bill. These prices are examples, not any provider's.

    Updated

    Questions people ask

    How do I estimate my monthly cloud cost?

    List each resource you use with its billing unit, multiply the quantity by your provider's price for that unit, and add the lines. Compute is usually billed per hour, storage per GB-month, egress per GB and requests per million.

    How are serverless GB-seconds calculated?

    GB-seconds = invocations × average run time in seconds × memory in GB. Most platforms count 1 GB as 1,024 MB, so a 512 MB function running for 0.2 s uses 0.1 GB-seconds per call. A separate fee per million calls is added on top.

    Why is data egress often a big part of the bill?

    Providers usually charge for data leaving their network but not for data coming in, and the charge grows with every GB served. A cache or CDN in front of the site can cut it, and the bandwidth calculator estimates how much a site transfers each month.

    How many hours are in a cloud billing month?

    A year has 8,760 hours, so an average month is about 730. Calendar months run from 672 to 744 hours, which is why a server that runs all month costs slightly different amounts in February and March.

    What does this estimate leave out?

    Free tiers, reserved or committed-use discounts, spot pricing, taxes, support plans, IP addresses, load balancers, snapshots and traffic between zones are not included. Check the total against your provider's own pricing calculator, and for a big budget decision ask the provider's sales team or a cloud cost specialist.

    More in Technology & Computing