HomeBlogExplainer

Amazon EC2 vs Amazon VPC: What Changes the Cost When Your Servers Need a Network?

A white robot stacks compute, storage and network blocks into a three tier tower in an outdoor cloud engineering lab

You do not choose between EC2 and a VPC, because every EC2 instance runs inside one: Amazon EC2 is the virtual server, and Amazon VPC is the private network it plugs into, with its subnets, routes, gateways and firewall rules. The VPC itself is free, so the useful question for a small business is which network pieces around the server cost money and which ones you can avoid.

What each service does

AWS's EC2 guide defines an instance as a virtual server whose instance type sets its compute, memory, network and storage, with security groups acting as a virtual firewall for the protocols, ports and addresses allowed in and out. The VPC guide describes a logically isolated virtual network that closely resembles a network you would run in your own data center. Its parts map onto familiar office equipment:

VPC partWhat it doesOffice equivalent
SubnetA range of addresses in one Availability ZoneA network segment or VLAN
Route tableDecides where traffic from a subnet goesRouter configuration
Internet gatewayConnects the VPC to the internetThe internet connection
NAT gatewayLets private servers reach out without being reachableOutbound-only firewall rule
Site-to-Site VPNConnects the VPC to your office networkA branch office tunnel
VPC endpointReaches AWS services privately without the internetA private line to a supplier
Flow logsRecords traffic to and from network interfacesFirewall logs

Every account starts with a default VPC in each Region, with a public subnet in every Availability Zone and an internet gateway. AWS calls it suitable for getting started and for public instances such as a blog or simple website. For a business system, design your own network with private subnets; see AWS landing zone design for where that fits in the account structure.

What distinguishes Amazon EC2 from Amazon VPC on the bill?

AWS's VPC guide says there is no additional charge for using a VPC, but some components cost money. As of December 2026, the VPC pricing page lists:

  • Public IPv4 addresses: $0.005 per hour for each address, whether attached to a resource or sitting idle in the account.
  • NAT gateway: an hourly charge for each gateway plus a per-GB data processing charge. In US East (N. Virginia) that is $0.045 an hour and $0.045 per GB, the same rates as AWS's US East (Ohio) example, and partial hours are billed as full hours.
  • Gateway VPC endpoints: no hourly or data processing charge. AWS notes that routing Amazon S3 traffic through one avoids the NAT gateway's processing fee.

A worked bill for one private application server

This example is illustrative and uses the rates above for a 730-hour month. A 50-person firm runs one application server in a private subnet. It downloads updates through a NAT gateway (about 20 GB a month), backs up to S3, and staff reach it over a VPN from the office.

Network itemMonthly costAvoidable?
VPC, subnets, route tables, security groups$0Nothing to avoid
NAT gateway hoursAbout $32.85Partly, with a different outbound design
NAT processing for 20 GB of updatesAbout $0.90Small
Backups to S3 through the NAT gateway$0.045 per GBYes: use a free gateway endpoint for S3
A public IPv4 address left on the serverAbout $3.65Yes: a private server does not need one

The NAT gateway can cost more than a small server. That is the most common surprise when a business moves its first server into a private subnet. The VPN connection is priced separately; check the VPC pricing page for your Region.

When the network design grows: two zones, a website, audit rules

  • Two Availability Zones for recovery means a subnet in each and outbound capacity in each; AWS bills even its regional NAT gateway for every hour it is configured in each zone. The Compute SLA of 99.99% only applies when instances run in two or more zones.
  • A public website belongs behind a load balancer in a public subnet, with the server itself private.
  • Segmentation rules from an auditor or insurer usually map to separate subnets and security groups; our network segmentation entry explains the idea.
  • A second cloud. If part of the estate runs on Azure, AWS vs Azure networking maps VPC parts to their Azure equivalents.

For the server side of the bill, read EC2 On-Demand vs Reserved and Amazon EC2 vs VPS. NetSys AWS consulting designs the network before the first server goes in; to have yours drawn up, Scope my AWS workload.

More on this topic: AWS operations guides.

Frequently asked questions

Amazon VPC vs EC2: do I need both?

Yes. An EC2 instance launches into a subnet of a VPC, either the default VPC AWS creates in each Region or one you design. The VPC is the network; EC2 is the server.

Does Amazon VPC cost money?

The VPC itself has no charge. Some components do, including NAT gateways, public IPv4 addresses at $0.005 an hour each, IP Address Manager and traffic mirroring, as of December 2026.

Can I use the default VPC for business servers?

AWS describes the default VPC as suitable for getting started and simple public instances. Business systems are better in a VPC you design, with private subnets for servers and databases.

Why is my NAT gateway so expensive?

It bills for every hour it exists, partial hours count as full hours, and each GB through it adds a processing charge. Send S3 traffic through a gateway endpoint, and delete gateways in environments you no longer use.

Sources

Read on December 2, 2026:

AWS Consulting for Business

Discuss AWS Consulting for Business for your business.

Tell us about your current systems, the result you need and your timeline. We will discuss the work, responsibilities and pricing before you decide on an engagement.

Explore AWS Consulting for Business 845-203-3914