Cloud & Software Infrastructure

Serverless Cost Modeler

Model serverless function costs based on invocations and execution time

A planning model using the inputs and formula shown below. Example values are illustrative, not market benchmarks.

Tool 04 of 79

Set your assumptions

Enter your values or load the labeled example.

Tool guide ↓Use calculator

1. Enter your information

2. Your results

Enter your information and calculate to see your results.

Overview & assumptions

Model serverless function costs based on invocations and execution time This calculator applies a simplified scenario model. Use amounts and periods consistently; a result is an estimate, not a quote, measured probability, or legal determination.

Results do not include variables absent from the form. Review the formula and detailed breakdown before acting, and verify current prices, contractual terms, and applicable rules separately.

Formula

Monthly Cost = Invocations (millions) × Price per Million + Invocations (millions) × 1000000 × Duration (ms) / 1000 × Memory (GB) × Compute Rate

Hypothetical worked example

Monthly Invocations (millions)
10
Price per Million ($)
0.2
Avg Duration (ms)
100
Memory (GB)
0.5
Compute Rate ($/GB-second)
0

Monthly Cost: $10.33

  • Invocation Cost: $2.00
  • Duration Cost: $8.33
  • Total Monthly: $10.33

These sample values demonstrate the arithmetic and do not describe a real business.

Resources

Browse the sourced business explainers for context on assumptions and decision-making.

Read how we publish and correct content.