Azure Functions Cost Calculator

Plan serverless budgets with clear knobs and assumptions. Adjust prices, free grants, and addons easily. See monthly totals above, then download detailed reports fast.

Inputs
Defaults are examples. Update rates for your region and currency.

Choose the hosting model you want to estimate.
Example: $, €, £, ₹
Use for savings plans, enterprise discounts, or commitments.
Rounds memory to 128 MB and duration to 1 ms.
Optional contingency for spikes, retries, and growth.
Applied after overhead.

Workload profiles (optional, up to 3)
Add multiple rows if you have different memory or duration profiles.
Workload 1
Tip: start with your monitoring metrics and averages.
Workload 2
Tip: start with your monitoring metrics and averages.
Workload 3
Tip: start with your monitoring metrics and averages.

Consumption plan rates
Used when you select Consumption (Legacy).

Flex Consumption rates
Used when you select Flex Consumption. On-demand supports free grants; always-ready does not.
Leave 0 to use workload totals.
Leave 0 to use workload totals.
Always-ready (optional)
Common sizes: 512, 2048, 4096.
Always-ready has no free grants.

Premium plan inputs
Used when you select Premium. This model bills allocated vCPU and memory over time.
Typical month ≈ 730 hours.

Dedicated (App Service) inputs
Used when you select Dedicated. Enter your plan's effective instance-hour rate.

Optional add-ons
Azure Functions costs often include storage, monitoring, and egress.
Formula used
How to use this calculator
  1. Pick a plan that matches your hosting choice.
  2. Enter one or more workload profiles from monitoring data.
  3. Set your regional unit rates, free grants, and discounts.
  4. Add storage, monitoring, and egress if you use them.
  5. Press Calculate to view totals above the form.
  6. Download CSV or PDF to share with stakeholders.
Example data table
These are sample scenarios using the default example rates.
Scenario Plan Executions Duration Memory GB-s Estimated cost
API bursty Consumption 3,000,000 1000 ms 512 MB 1,500,000 $18.00
Small scheduler Consumption 900,000 250 ms 256 MB 56,250 $0.00
Always-ready HTTP Flex 5,000,000 200 ms 2048 MB 2,000,000 Varies by baseline inputs
FAQs

1) What counts as an execution?

An execution is counted each time a function runs in response to a trigger event, such as an HTTP call, queue message, or timer. Retries and replays can increase counts, so include realistic retry behavior in your estimates.

2) How is execution time cost measured?

Consumption-style plans charge for observed resource consumption in GB-seconds. You multiply memory (in GB) by execution time (in seconds) and by total executions, then apply free grants and rates.

3) Why does the calculator include “free grants”?

Consumption models often include monthly free quantities for executions and GB-seconds. If your workload stays under those thresholds, the compute portion can be zero. Free grants usually apply per subscription, not per function app.

4) Why might my invoice differ from this estimate?

Differences can come from rounding rules, higher peak memory, retries, additional bindings, outbound bandwidth, storage, and monitoring ingestion. Premium and always-ready options can also charge for idle capacity you keep allocated.

5) How do I estimate multiple functions with different profiles?

Use multiple workload rows. Put each function group’s executions, duration, and memory into its own row. The calculator sums executions and GB-seconds across rows before applying plan rules and free grants.

6) When is Premium cheaper than Consumption?

Premium can be cost-effective when you need always-on readiness, VNET access, predictable latency, or sustained load that would exceed consumption grants and rates. Because you pay for allocated instances, low-utilization apps may cost more on Premium.

7) Does idle time cost money?

On legacy Consumption and on-demand Flex, idle time can scale to zero. In Premium, Dedicated, and Flex always-ready, you typically pay for allocated capacity even when requests are low, because instances remain available.

8) Which inputs change cost the most?

Executions, duration, and memory drive GB-seconds. Small increases in memory or latency can multiply cost at scale. Start by improving average duration and memory use, then refine with monitoring and real traffic patterns.

Note: This is an estimator. Always confirm current rates for your region and plan.

Related Calculators

lambda cost calculatorapi gateway cost calculatordynamodb cost estimator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.