#1794 · Startup & SaaS Tool

Serverless Function Unit Cost Calculator

Calculate serverless cost per request from workload, execution time, memory, and your provider pricing.

Calculator

Enter your assumptions
requests
ms
MB
USD
USD

How to use this calculator

  1. Enter values from one consistent period.
  2. Use your actual pricing or cost assumptions.
  3. Select Calculate and review the main result.
  4. Change one assumption to compare scenarios.

Formula

Cost = requests ÷ 1,000,000 × request price + requests × duration seconds × memory GB × GB-second price.

What the result means

Use this result as a comparable operating metric or planning requirement. Recalculate when workload shape, pricing, or infrastructure configuration changes.

Provider billing rules, free tiers, minimum charges, and regional prices are excluded unless represented in your inputs.

Example calculation

The default values shown in the calculator form a worked example. Load the page or press Reset, then select Calculate to reproduce the displayed result.

Tips for better results

  • Use measured data instead of peak anecdotes.
  • Keep every input in the same time period.
  • Model a conservative case before committing budget.
  • Save the assumptions alongside the result.

Frequently asked questions

Which inputs most affect the serverless function unit cost calculator?

The inputs used directly in the displayed formula have the largest effect. Change one value at a time to isolate its impact.

Does this serverless function unit cost calculator include taxes or credits?

No. Add only the costs, fees, or rates represented by the visible inputs; tax and account-specific credits are outside the model.

Can I use zero for an input?

Zero is accepted where it represents no cost or no workload. Inputs used as divisors must remain above zero.

Why might my provider bill differ from this estimate?

Billing granularity, free tiers, regional rates, retries, networking, storage, and minimum charges can create differences.

How often should I recalculate this result?

Recalculate after a pricing change, architecture change, or material shift in workload or audience behavior.

Variables used in this calculation

VariableHow to use it
Monthly requestsEnter a value in the unit shown beside the field.
Average durationEnter a value in the unit shown beside the field.
Memory allocationEnter a value in the unit shown beside the field.
Price per million requestsEnter a value in the unit shown beside the field.
Compute price per GB-secondEnter a value in the unit shown beside the field.

Browse calculator categories

22 category hubs