# Serverless Cost Calculator

> Cost function invocations and GB-seconds at your own prices.

Page: https://freecalculator.tech/tools/serverless-cost-calculator
Last reviewed: 2026-09-16

## Formula

GB-seconds = Invocations × (Duration ÷ 1000) × Memory; Cost = ((Invocations − Free invocations) ÷ 1,000,000) × Price per million + (GB-seconds − Free GB-seconds) × Price per GB-second

- GB-seconds = Invocations × (Duration ÷ 1000) × Memory; Cost = ((Invocations − Free invocations) ÷ 1,000,000) × Price per million + (GB-seconds − Free GB-seconds) × Price per GB-second.
- Inputs used: Currency, Price per million invocations, Price per GB-second, Invocations in the period, Average duration, Memory allocated, Free invocations (optional), Free GB-seconds (optional), and other shown inputs.
- Edge handling: Price per million invocations is required.; Price per million invocations cannot be negative.; Price per million invocations must be no more than 1000000000.; Price per GB-second is required.; Price per GB-second cannot be negative..

## Inputs

- Currency
- Price per million invocations
- Price per GB-second
- Invocations in the period
- Average duration
- Memory allocated
- Free invocations (optional)
- Free GB-seconds (optional)
- Price as of (optional)
- Price source (optional)

## Worked example: 50 million invocations of a 512 MB function

Invocation and duration pricing entered from your own bill.
1. Start with Currency: USD, Price per million invocations: 0.20, Price per GB-second: 0.0000166667, Invocations in the period: 50000000, Average duration: 120, Memory allocated: 0.5.
2. Apply the method: GB-seconds = Invocations × (Duration ÷ 1000) × Memory; Cost = ((Invocations − Free invocations) ÷ 1,000,000) × Price per million + (GB-seconds − Free GB-seconds) × Price per GB-second.
3. Invocation and duration pricing entered from your own bill.

## Common questions

### Where does this formula come from?

FinOps Framework capability: workload optimisation — cloud resource cost is the metered quantity of a resource multiplied by the rate on the organisation's own rate card. See the source link on this page.

### What kind of calculation is this?

Invocation charges and duration charges, each priced at the rate the user entered. Check the formula, example, and limitations on this page before using the result for a real professional & industry decision.

### What are its limits?

The result is only as current as the prices entered; a price taken months ago is not a current vendor price. Arithmetic over the figures entered — it cannot tell whether the usage or the rate card behind them is right. Using an average duration understates cost when durations are strongly skewed.

### How do I use the Serverless Cost Calculator?

Enter the required values for Currency, Price per million invocations, Price per GB-second, Invocations in the period, Average duration, and the other fields shown. The calculator applies the formula on this page and shows the main result with any supporting breakdown so you can check the arithmetic.

### What formula does the Serverless Cost Calculator use?

GB-seconds = Invocations × (Duration ÷ 1000) × Memory; Cost = ((Invocations − Free invocations) ÷ 1,000,000) × Price per million + (GB-seconds − Free GB-seconds) × Price per GB-second The visible formula section above lists the calculation path and the edge cases the page handles, so the result can be checked without relying on the form alone. Check the formula, example, and limitations on this page before using the result for a real professional & industry decision.

### Can the Serverless Cost Calculator be used for exact decisions?

Use it as a calculation aid, not as a substitute for checking the underlying rule, contract, policy, or professional advice that applies to your situation. When a result depends on local rules, personal details, prices, or dates, enter those values yourself and confirm them before acting.

## Limitations and assumptions

- Inputs outside the supported range are rejected rather than forced into a result.
- The result depends on the values you enter for this serverless cost calculator; it does not supply missing rates, rules, prices, dates, or assumptions for you.

## Sources

- The Linux Foundation — https://www.finops.org/framework/capabilities/workload-optimization/

## Cite this page

- APA: Free Calculator. (2026, September 16). Serverless Cost Calculator. https://freecalculator.tech/tools/serverless-cost-calculator
- MLA: "Serverless Cost Calculator." Free Calculator, 16 Sept. 2026, https://freecalculator.tech/tools/serverless-cost-calculator.
- Link: Serverless Cost Calculator — Free Calculator, https://freecalculator.tech/tools/serverless-cost-calculator
