Skip to content
ENExplore Calculators

Azure Functions Cost Calculator

Price the Functions consumption plan in GB-seconds and executions, including the monthly free grants.

About Azure Functions Cost Calculator

The consumption plan charges two meters: resource consumption in GB-seconds, where memory is rounded up to 128 MB blocks and duration has a 100 ms floor, and a flat charge per million executions. Both meters have a monthly free grant, so small workloads genuinely cost nothing while long-running or memory-hungry functions are dominated by the GB-second line. The 100 ms floor and the 128 MB rounding mean thousands of trivial 5 ms functions cost the same as 100 ms ones, so batching work per invocation is usually cheaper than fanning out — check the current GB-second and execution prices in the Azure pricing calculator, and note that Premium and Flex Consumption plans bill differently.

Formula

Azure Functions Cost

GB-seconds = executions × billed duration (min 100 ms) × memory rounded up to 128 MB blocks ÷ 1024; cost = (GB-s − 400,000 free) × GB-s price + (executions − 1 M free) ÷ 1 M × execution price.

GB-second
One gigabyte of memory held for one second
free grant
Monthly allowance of 400,000 GB-seconds and 1 million executions
billed duration
Execution time with a 100 ms floor applied

Worked example

With the default values below, Azure Functions Cost Calculator returns Monthly Cost of $10.40. Change any input above and every figure here is recalculated in your browser.

Inputs used

Executions per monthaccepts 0–100,000 millions
5 millions
Average execution timeaccepts 1–600,000 ms
400 ms
Memory used per executionaccepts 128–14,336 MB
512 MB
Price per GB-secondaccepts 0–0.01 USD
0.000016 USD
Price per million executionsaccepts 0–100 USD
0.2 USD
Free GB-seconds per monthaccepts 0–10,000,000 GB-s
400,000 GB-s
Free executions per monthaccepts 0–100 millions
1 millions

Results

Monthly Cost
$10.40
Resource Consumption
1,000,000 GB-s
Billable GB-seconds
600,000 GB-s
Resource Charge
$9.60
Execution Charge
$0.80
Cost per Million Executions
$2.08

Step by step

  1. 1Values used
  2. 2Azure Functions Cost
  3. 3Monthly Cost= 10.40
  4. 4Resource Consumption= 1,000,000 GB-s
  5. 5Billable GB-seconds= 600,000 GB-s
  6. 6Resource Charge= 9.60
  7. 7Execution Charge= 0.80
  8. 8Cost per Million Executions= 2.08

Assumptions and limits

  • The result is derived only from the 7 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

How is Azure Functions Cost calculated?

GB-seconds = executions × billed duration (min 100 ms) × memory rounded up to 128 MB blocks ÷ 1024; cost = (GB-s − 400,000 free) × GB-s price + (executions − 1 M free) ÷ 1 M × execution price. The consumption plan charges two meters: resource consumption in GB-seconds, where memory is rounded up to 128 MB blocks and duration has a 100 ms floor, and a flat charge per million executions. Both meters have a monthly free grant, so small workloads genuinely cost nothing while long-running or memory-hungry functions are dominated by the GB-second line.

Why does Azure Functions Cost matter?

The 100 ms floor and the 128 MB rounding mean thousands of trivial 5 ms functions cost the same as 100 ms ones, so batching work per invocation is usually cheaper than fanning out — check the current GB-second and execution prices in the Azure pricing calculator, and note that Premium and Flex Consumption plans bill differently.

What values do I need to enter?

This calculator takes 7 inputs: Executions per month, Average execution time, Memory used per execution, Price per GB-second, Price per million executions, Free GB-seconds per month, Free executions per month. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Azure Functions Cost Calculator – Calculate Monthly Cost