∑
DevFormula
AI Tokens & Cloud ComputeVerified 2026-10-21

Google Cloud Functions Cost Calculator

Simulate GCP serverless compute bills with Google Cloud Functions 2nd Gen ($0.40 per 1M requests + compute).

Parameters & Config

calls
calls
1,000calls1,000,000,000calls

Total function executions triggered per month

MB
MB
128MB10,240MB

RAM allocated to the serverless container

ms
ms
1ms900,000ms

Average latency per execution in milliseconds

$
$
0.01$5$

Cloud provider fee per 1,000,000 invocation requests

$
$
0$0.001$

Charge per GB-second of compute runtime consumed

Total Monthly Cloud BillLIVE ESTIMATE
$5.09

Combined monthly charge for invocations and compute runtime

Effective Cost per 1M CallsLIVE ESTIMATE
$1.02

Blended cost to execute 1,000,000 function requests

Key Metrics & Sub-Totals

3 items
Compute Runtime ChargeCost based on memory allocated and total execution duration (GB-seconds)
$3.09
Invocation Request ChargeCost for incoming API function invocations
$2.00
Monthly GB-Seconds ConsumedTotal memory-time compute units utilized
187,500 GB-s

Calculation Summary & Unit Breakdown

MetricCalculated ValueNotes / Logic
Monthly Invocations5,000,000requests/month
Allocated Function Memory256 MB0.250 GB
Average Execution Duration150 msper call
Total Compute Volume187,500 GB-sGB-seconds
Request Surcharge$2.00Invocation fee
Compute Runtime Charge$3.09Memory-duration fee
Effective Cost per 1M Calls$1.02Blended rate
Total Monthly Cloud Bill$5.09USD

Overview & Methodology

Google Cloud Functions (2nd Gen, powered by Cloud Run and Knative) charges $0.40 per 1,000,000 invocations plus Tier 1 compute rates ($0.0000165/GB-second and $0.000024/vCPU-second).

Mathematical Formulation

Total GCP Bill = (Invocations / 1M × $0.40) + (GB-s × $0.0000165).

Optimization Best Practices

1

GCP Free Tier includes 2,000,000 invocations, 400,000 GB-seconds, and 200,000 GHz-seconds of compute free every month.

2

2nd Gen functions support up to 60-minute execution times for heavy background ETL workloads.

3

Enable minimum instances to eliminate cold start latency for critical user-facing endpoints.

Frequently Asked Questions

Q.How much does 5,000,000 executions cost on Google Cloud Functions?
A.

5M calls at 256MB and 150ms cost $2.00 for invocations plus $3.09 for compute (187,500 GB-s), totaling $5.09.

Q.What is the GCP serverless free tier allowance?
A.

GCP provides 2M invocations and 400,000 GB-seconds free each month across Cloud Functions and Cloud Run.

Q.What is the difference between 1st Gen and 2nd Gen Cloud Functions?
A.

2nd Gen runs on Cloud Run, offering larger concurrency (up to 1,000 requests per instance), 60-minute timeouts, and faster cold starts.