Computing & Software

Serverless Request & GB-Second Cost Calculator

Estimate a simple request-plus-duration serverless bill with user-defined free allowances and rates.

How the calculation works

Compute usage = requests*duration_ms/1000*memory_mb/1024 GB-seconds. Duration charge = max(0,requests*duration_ms/1000*memory_mb/1024-free_gbs)*rate_gbs currency. Request charge = max(0,requests-free_requests)/1e6*rate_million currency. Total modelled charge = max(0,requests*duration_ms/1000*memory_mb/1024-free_gbs)*rate_gbs+max(0,requests-free_requests)/1e6*rate_million currency.

Worked example

Example inputs — Invocations in period: 1000000; Billed average duration per invocation (ms): 100; Allocated memory (MiB): 512; GB-second allowance for this scenario: 0; Price per billed GB-second: 2e-05; Invocation allowance for this scenario: 0; Price per million billed invocations: 0.2. Expected results — Compute usage: 50000 GB-seconds; Duration charge: 1 currency; Request charge: 0.2 currency; Total modelled charge: 1.2 currency.

Assumptions and limits

Analytical software/hardware scenario, not a benchmark or a live provider quote. Use the actual architecture, workload and billing definitions; overheads not named in the model are excluded. Generic provisioned-memory GB-second model, not a current AWS or other provider quotation. Duration must already include billing rounding. Alternative CPU/memory billing, transfer, provisioned concurrency and account-level shared allowances are excluded.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.