Cloud Computing & AI Tech

Serverless Cost Calculator — Lambda & Cloud Functions Pricing

Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).

Estimate serverless compute cost from invocations, duration, and memory. Planning estimates only — verify with production tools and vendor pricing where applicable.

Inputs

0.11000
1030000
12810240
0.11

Smart analysis

Recommendations

Tailored to your live inputs and result—guidance only, not professional advice.

  • Interpret

    Treat this as a planning estimate

    Primary result: Monthly serverless cost = $18.67. Re-run with optimistic and pessimistic inputs to understand the range—not just a single point.

Scenario studio

Compare A vs B

Capture two sets of inputs on this device, then see which outcome wins. Share either scenario with a link.

Scenario A

Adjust inputs, then capture this slot.

Scenario B

Adjust inputs, then capture this slot.

Plain-English guide

Terms & how it works

Confused by a field? Read the short definitions here while you use the tool.

  • Invocations (millions/mo)

    The “Invocations (millions/mo)” value used in this tool’s formula. Adjust it to see results update live.

  • Avg duration (ms)

    The “Avg duration (ms)” value used in this tool’s formula. Adjust it to see results update live.

  • Memory (MB)

    The “Memory (MB)” value used in this tool’s formula. Adjust it to see results update live.

  • Request cost ($/million)

    One-time or recurring costs that affect total money paid.

How this calculator works

Estimate serverless compute cost from invocations, duration, and memory. Planning estimates only — verify with production tools and vendor pricing where applicable. Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate). Example: 10M invocations, 200 ms, 512 MB → ~$42/mo on Lambda.

Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).

Example: 10M invocations, 200 ms, 512 MB → ~$42/mo on Lambda.

When to use this Serverless Function Cost

Common use cases

  • Estimate serverless compute cost from invocations, duration, and memory.
  • Sanity-check with this case: 10M invocations, 200 ms, 512 MB → ~$42/mo on Lambda.
  • The relationship is: Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).

Localized examples

  • Cloud Computing & AI Tech: the example on this page uses the same formula as the widget.

What you get

  • Fields: Invocations (millions/mo), Avg duration (ms), Memory (MB), Request cost ($/million)
  • Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).
  • Example on the page: 10M invocations, 200 ms, 512 MB → ~$42/mo on Lambda.

How to Calculate Serverless Function Cost Step-by-Step

  1. 1Enter Invocations (millions/mo), Avg duration (ms), Memory (MB), then the remaining fields. Use the values you have, not a catalog average, unless that is all you know.
  2. 2Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).
  3. 3Worked case: 10M invocations, 200 ms, 512 MB → ~$42/mo on Lambda.
  4. 4Compare the result to last month’s invoice or a vendor calculator before you commit capacity.

Governing formula

Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).

10M invocations, 200 ms, 512 MB → ~$42/mo on Lambda.

Example: set Invocations (millions/mo) = 10, Avg duration (ms) = 200, Memory (MB) = 512, then read the result.

Variable definitions

  • invocationsM

    Invocations (millions/mo)

    The “Invocations (millions/mo)” field. Default 10; typical range 0.1–1000.

  • durationMs

    Avg duration (ms)

    The “Avg duration (ms)” field. Default 200; typical range 10–30000.

  • memoryMb

    Memory (MB)

    The “Memory (MB)” field. Default 512; typical range 128–10240.

  • requestCostPerM

    Request cost ($/million)

    The “Request cost ($/million)” field. Default 0.2; typical range 0.1–1.

  • Closed-form math (Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).) misses idle time, egress, packet loss, and reserved capacity on the real bill.
  • Nothing here is uploaded for the calculation itself.

Frequently Asked Questions

Cost = invocations × request fee + (GB-seconds × duration × memory/1024 × compute rate).

Cloud Computing & AI Tech

Get a note when we add a planner

Occasional email when something new is worth opening. We never share your address. Unsubscribe anytime.

Community

Reviews & Ratings

See what others think about this tool, then leave your own rating to help improve CalculioHub.

4.8

out of 5.0

4 reviews

Leave a review

Your rating

Aisha K.

Mar 12, 2026

Clean layout and the results update instantly. Exactly what I needed for a quick planning check.

Daniel R.

Feb 28, 2026

Very usable on mobile. Would love a save/export option later, but the math feels solid.

Priya S.

Feb 3, 2026

The FAQ section answered my questions before I even had to search. Smooth dark mode too.

Marcus L.

Jan 19, 2026

Simple inputs, clear outputs. This replaced three bookmarks I used to juggle.

Improve this tool

Suggestion Box

Share an idea, report a bug, or send general feedback for Serverless Function Cost Calculator. Your input helps shape what we build next.