This free AWS subnet calculator takes a CIDR block such as 10.0.0.0/24 and shows how many IP addresses you can really use once AWS takes its five.
It also lists which addresses are reserved, splits the block into equal subnets, and switches to the Azure rule with one click.
Generic calculators stop at “254 hosts”. In a VPC the answer is 251, and getting that wrong is how subnets run out of addresses. Pair it with our VPC security checklist when you plan a new network.
Rules checked against the AWS VPC and Microsoft Azure docs on December 2, 2026.
Type a CIDR block such as 10.0.0.0/24 and press Calculate. In AWS, a /24 subnet has 256 addresses and 251 you can use.
Runs in your browser. Nothing you type is saved or sent.

How to use the AWS subnet calculator
- Type the CIDR block with its prefix, such as
10.0.0.0/24. Copy it from the VPC console (VPC > Subnets, the IPv4 CIDR column) if the subnet already exists. - Pick how many pieces you want, for example 4 equal subnets for two public and two private subnets across two Availability Zones.
- Choose the rule: AWS VPC, Azure VNet, or a plain network that only drops the network and broadcast addresses.
- Press Calculate or Enter. Changing the rule or the split recalculates straight away.
What the subnet calculator is for
It answers the questions that come up when you lay out a VPC: how big should each subnet be, how many instances, containers or Lambda network interfaces fit, and where does each range start and end.
It also suits exam prep. "How many usable addresses in a /28?" is a classic, and the answer is 11, not 14. Our VPC interview questions cover the rest of that ground.

What your result means
The big number is the count you can assign. The table lists the five addresses the cloud keeps, and they sit in the same places on AWS and Azure:
| Address in 10.0.0.0/24 | AWS uses it for | Azure uses it for |
|---|---|---|
| 10.0.0.0 | Network address | Network address |
| 10.0.0.1 | VPC router | Default gateway |
| 10.0.0.2 | Amazon DNS server (base + 2) | Azure DNS mapping |
| 10.0.0.3 | Reserved for future use | Azure DNS mapping |
| 10.0.0.255 | Broadcast (not supported in a VPC) | Broadcast address |
The AWS list comes from the VPC subnet sizing guide, which also caps subnets between /16 and /28. Microsoft's virtual network FAQ gives the Azure list and allows /29 up to /2.
An orange note means the block breaks a size rule or had host bits set. If you type 100.68.0.18/18, AWS creates 100.68.0.0/18, and the calculator shows the same correction.
How it's calculated
A prefix of /p leaves 32 − p host bits, so the block holds 2(32 − p) addresses. The network address is the typed address rounded down to a multiple of that size.
Worked example: 10.0.0.0/24 has 28 = 256 addresses. Take away 5 and AWS leaves 251 usable, from 10.0.0.4 to 10.0.0.254. Split it in two and each /25 holds 128 − 5 = 123.
Splitting into 2, 4, 8 or more subnets adds 1, 2 or 3 bits to the prefix. The calculator refuses a split that would go below the smallest size the cloud allows.
Usable IP addresses by subnet size
| Prefix | Total addresses | Usable in AWS | Usable in Azure |
|---|---|---|---|
| /16 | 65,536 | 65,531 | 65,531 |
| /18 | 16,384 | 16,379 | 16,379 |
| /20 | 4,096 | 4,091 | 4,091 |
| /22 | 1,024 | 1,019 | 1,019 |
| /24 | 256 | 251 | 251 |
| /25 | 128 | 123 | 123 |
| /26 | 64 | 59 | 59 |
| /27 | 32 | 27 | 27 |
| /28 | 16 | 11 | 11 |
| /29 | 8 | Not allowed | 3 |
What to do with your result
- Give each Availability Zone its own subnets. A subnet lives in one zone, so a two-zone design needs at least two public and two private subnets. See how Regions and Availability Zones fit together.
- Leave room to grow. A subnet's CIDR can't be changed after creation, so pick /24 or larger for anything that scales, such as Auto Scaling groups or containers.
- Check for overlaps with your office network or other VPCs before you connect them with peering, a VPN or Direct Connect. Overlapping ranges can't route to each other.
- Count load balancers and endpoints too. An Elastic Load Balancer or a VPC endpoint takes addresses from your subnet, not from a separate pool.

Limits of this calculator
- It handles IPv4 only. AWS IPv6 subnets run from /44 to /64, and Azure IPv6 subnets must be exactly /64.
- It can't see your account, so it doesn't know which addresses are already taken or whether a range overlaps another VPC.
- Ranges you bring to AWS with BYOIP are an exception: AWS lets you use the network and broadcast addresses there.
- It never asks for AWS or Azure credentials and doesn't call either cloud. Everything runs in your browser.
Frequently asked questions
How many usable IP addresses are in a /24 subnet in AWS?
A /24 subnet holds 256 addresses. AWS reserves five of them: the network address, the VPC router, the DNS address, one kept for future use and the broadcast address. That leaves 251 addresses you can assign to instances, load balancers and other network interfaces.
Why does AWS reserve 5 IP addresses in every subnet?
AWS keeps the first four addresses and the last one in each subnet. They hold the network address, the VPC router, the Amazon DNS server address and one address for future use, and the last address stays reserved because VPCs don't support broadcast.
What is the smallest subnet I can create in AWS?
The smallest IPv4 subnet AWS allows is a /28, which has 16 addresses and 11 usable ones after the five reserved addresses. The largest is a /16. Azure allows subnets as small as /29, which leaves only three usable addresses.
Does Azure reserve the same IP addresses as AWS?
Azure also reserves five addresses per subnet in the same positions: the network address, the default gateway, two addresses that map Azure DNS, and the broadcast address. So a /24 gives 251 usable addresses on both clouds.
Can I change a subnet's CIDR block later in AWS?
No. Once a subnet exists its IPv4 CIDR block is fixed. To get more room you add a new subnet, or add a secondary CIDR block to the VPC and create subnets from it. That is why it pays to size subnets with growth in mind.
Conclusion
Subnet math in the cloud is ordinary CIDR math minus five. Keep that in mind and VPC plans stop running short.
- AWS and Azure both reserve the first four and the last address of every subnet.
- AWS subnets run from /16 to /28; Azure allows /29 up to /2.
- A /24 gives 251 usable addresses, a /28 gives 11.
- Plan one set of subnets per Availability Zone and leave room to grow.
