google_ compute_ router cost estimation
A Cloud Router is free. It runs BGP to exchange dynamic routes at no charge. The cost lands on what it hosts, chiefly Cloud NAT, and on the VPN or Interconnect attachments it advertises.
A google_
The router is where two paid things get attached, which is why it shows up in cost conversations. First, Cloud NAT: a NAT configuration (google_
So a Cloud Router with no NAT and no attachments is genuinely free. The moment it hosts a NAT gateway or anchors a VPN or Interconnect, the cost is on those components. c3x prices the Cloud NAT config, VPN tunnels, and Interconnect attachments a router carries and treats the router and its BGP sessions as the free control plane they are.
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "google_compute_router" "main" {
name = "main-router"
region = "us-central1"
network = google_compute_network.main.id
bgp {
asn = 64514
}
}Pricing dimensions
What you actually pay for when you provision google_.
| Dimension | Unit | What's being charged |
|---|---|---|
| Cloud Router and BGP | free | The router, its BGP sessions, and route advertisement have no charge. $0 |
| Cloud NAT hosted on the router | per hour + per GB | A google_ ~$0.044/gateway-hour + $0.045/GB |
| VPN / Interconnect attachments | per hour + per GB | Hybrid connectivity whose routes the router advertises, billed per tunnel or attachment plus egress. Cloud VPN: ~$0.05/tunnel-hour + egress |
Optimization tips
Common ways to reduce google_ cost without changing the workload.
One Cloud Router per region for NAT
A single Cloud Router can host the NAT config for all subnets in its region. Extra routers add operational surface without reducing the NAT charge, which is driven by gateway-hours and data.
Tune NAT port allocation, not the router
The router is free; NAT cost is the lever. Right-sizing minimum ports per VM and enabling dynamic port allocation avoids over-provisioning NAT gateway capacity.
Consolidate hybrid connectivity
VPN tunnels and Interconnect attachments each bill hourly. Advertising routes for several networks through shared connectivity avoids duplicate tunnel charges.
FAQ
Does a Cloud Router cost money?
No. The Cloud Router and its BGP sessions are free. Cost comes from what you attach to it: a Cloud NAT configuration, or the VPN tunnels and Interconnect attachments whose routes it advertises.
Why do I need a Cloud Router if it is free?
Cloud NAT and dynamic routing over VPN or Interconnect require a Cloud Router to host the config and run BGP. It is a free prerequisite whose attached components carry the charge.
How do I estimate the cost around a Cloud Router?
Price the Cloud NAT config and any VPN or Interconnect attachments on it, plus their egress. c3x prices those components and treats the router itself as free.
Related resources
Estimate this resource in your own Terraform
Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including google_.