Serverless Cost Calculator
Cost function invocations and GB-seconds at your own prices.
In short
Cost function invocations and GB-seconds at your own prices.
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
What this calculator does
The two charge lines are computed separately and added, using only the prices and allowances the user entered.
Use it to turn Currency, Price per million invocations, Price per GB-second, Invocations in the period, and the other shown inputs into a checked result you can compare, copy, or rerun with different assumptions.
The page shows the formula, a numeric worked example, and the assumptions that affect this professional & industry calculation.
Inputs and what they mean
- Currency
- — Amounts are shown in the currency you pick. No exchange rate is applied..
- Price per million invocations
- — Take this from your own bill or the provider's price page. No provider price is built in..
- Price per GB-second
- — Take this from your own bill or the provider's price page. No provider price is built in..
- Invocations in the period
- — number value.
- Average duration
- — Average billed duration of one invocation..
- Memory allocated
- — Memory configured for the function..
- Free invocations (optional)
- — Optional component. Leave at 0 to exclude it from the result..
- Free GB-seconds (optional)
- — Optional component. Leave at 0 to exclude it from the result..
- Price as of (optional)
- — The date you took these prices. It is shown with the result so the figure is never read as a current vendor price..
- Price source (optional)
- — Where the prices came from. Shown with the result..
How to use it
- Enter your own figures — the calculator never fills in a rate, price or benchmark for you.
- Press Calculate to see the result.
- Read the formula, variables, assumptions and source below the result before you rely on it.
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.
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..
Worked example
50 million invocations of a 512 MB function
- 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.
- 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.
- Invocation and duration pricing entered from your own bill.
Reading the result
The headline figure is the main answer. Any breakdown underneath shows the parts that make it up, so you can check the working and see what changes when you adjust an input.
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.
Reference: The Linux Foundation — Workload optimisation — FinOps Framework
Last reviewed:
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.
Formula, source and verification
Invocation charges and duration charges, each priced at the rate the user entered.
The question it answers: What will this compute, storage, transfer, function, container, cluster or database cost us for the period, at our own rates?
The 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
- N — Invocations
- (count). Calls in the period.
- t — Average duration
- (ms). Average billed duration of one call.
- M — Memory
- (GB). Memory configured for the function.
- r1 — Price per million invocations
- (currency). From the user's own bill.
- r2 — Price per GB-second
- (currency). From the user's own bill.
- F — Free allowances
- (count). Optional free invocations and free GB-seconds.
Units: Currency; counts; milliseconds; gigabytes; GB-seconds.
What kind of calculation this is
Business input model. The answer depends on business figures only you can supply, such as your own costs, rates or volumes. No market or benchmark values are assumed for you.
Method
The two charge lines are computed separately and added, using only the prices and allowances the user entered.
Assumptions built into the result
- Mathematical: Every price is the one the user entered, in the currency they chose; no exchange rate is applied.
- Mathematical: Usage and prices cover the same period.
- Statistical: Average duration stands in for the distribution of durations.
Figures this calculator will never guess for you
- No provider price, instance rate, storage rate or transfer rate is built in.
- No typical discount, saving or industry average is suggested.
- No free tier is assumed.
Limitations
- 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.
Source and version
- Standard or reference
- FinOps Framework — workload optimisation — FinOps Foundation (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.)
- Published source
- The Linux Foundation — FinOps Framework
- Formula version
- Version 1
- Verification
- Reviewed against the cited source on
- How much weight the source carries
- Standards or government
- Applies to
- Currency
- Amounts stay in the currency you choose; no exchange rate is applied.
Cite this page
Free Calculator. (2026, September 16). Serverless Cost Calculator. https://freecalculator.tech/tools/serverless-cost-calculator
"Serverless Cost Calculator." Free Calculator, 16 Sept. 2026, https://freecalculator.tech/tools/serverless-cost-calculator.
Serverless Cost Calculator — Free Calculator, https://freecalculator.tech/tools/serverless-cost-calculator
Related tools
Work out the hourly rate to charge a client so that target margin is met after overhead and non-billable time.
Find the true hourly cost of an employee once benefits, payroll cost and overhead are included.
Size a software application from its data and transaction functions before estimating effort or cost.
Estimate development effort, schedule and average team size for a software project of a known size.
Express cloud spend as a cost per customer, per transaction or per other business unit.
Set the rate used to apply manufacturing overhead to jobs for the coming period.