bgunderlay bgunderlay bgunderlay

How Many IP Addresses in a /25 Subnet? (128 — Here’s Why)

How Many IP Addresses in a /25 Subnet? (128 — Here’s Why)

A /25 subnet contains 128 IP addresses. 126 are usable — 2 reserved for network address and broadcast. Half the size of /24. Here’s when to use it.

How Many IP Addresses in a /25 Subnet? (128 — Here’s Why)

128 IP addresses.

That’s the answer. A /25 subnet contains exactly 128 IP addresses. But only 126 are actually usable — the first address is the network identifier, and the last is the broadcast address.

A /25 is exactly half of a /24. It’s created by splitting a /24 in two.

Why 128? The Math Behind /25

The “/25” in CIDR notation means 25 bits are used for the network portion of the address. That leaves 7 bits for host addresses.

The calculation:

  • 32 bits total in an IPv4 address
  • 25 bits for network = 7 bits for hosts
  • 2^7 = 128 possible combinations
  • Subtract 2 (network + broadcast), you get 126 usable addresses

It’s not arbitrary. It’s binary math.

Complete CIDR Reference Chart

CIDR Subnet Reference Chart
CIDRSubnet MaskTotal IPsUsable IPsCommon Name
/25255.255.255.128128126Half /24
/24255.255.255.0256254Standard block

What Can You Actually Do With 126 IPs?

Typical /25 allocation: Small business office with ~100 devices on one VLAN, branch office with ~80 workstations + servers, or small hosting company with ~90 customer VMs.

Summary

  • /25 = 128 IPs (126 usable)
  • Exactly half of a /24
  • Subnet mask: 255.255.255.128
  • Calculation: 2^(32-25) = 128
  • Common use: Splitting /24 for network segmentation

Frequently Asked Questions

How many IP addresses are in a /25 subnet?

+

A /25 subnet contains 128 IP addresses total, with 126 usable addresses. Two addresses are reserved: the network address (first) and broadcast address (last).

What is the subnet mask for /25?

+

The subnet mask for /25 is 255.255.255.128. This means the first 25 bits identify the network, and the last 7 bits identify individual hosts.

How many /25s are in a /24?

+

A /24 can be split into exactly 2 /25 subnets. Each /25 contains 128 IP addresses (126 usable).

    Ready to get started?

    Articles
    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)
    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)

    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses Subnetting is a critical

    More
    IPv4 Leasing Revolution: Why Smart Businesses Are Ditching Ownership in 2025
    IPv4 Leasing Revolution: Why Smart Businesses Are Ditching Ownership in 2025

    Why IPv4 Leasing Is Becoming the Smart Choice for Businesses in 2025 1. Introduction

    More
    Network Isolation Revolution: IPv4 Marketplace Insights for Enterprise Security
    Network Isolation Revolution: IPv4 Marketplace Insights for Enterprise Security

      As CEO of InterLIR, I’ve witnessed firsthand how network isolation strategies

    More
    What is ASN?
    What is ASN?

    What is an ASN? ASN stands for Autonomous System Number. It is a unique identifier

    More
    How Anycast DNS Actually Works (And Why Your Network Needs It)
    How Anycast DNS Actually Works (And Why Your Network Needs It)

    Anycast DNS: A Leader’s Guide to Protecting Your Digital Infrastructure Executive

    More
    Why RPKI Matters: Securing Your Company’s Internet Traffic
    Why RPKI Matters: Securing Your Company’s Internet Traffic

    RPKI Certification: A Leader’s Guide to Internet Routing Security Executive

    More
    Why RIPE Address Policy Matters for Your Company’s Digital Future
    Why RIPE Address Policy Matters for Your Company’s Digital Future

    Executive Summary: What You Need to Know 🎯 Strategic Importance – Internet

    More
    AWS Outages: The CEO’s Guide to Preventing Downtime & Protecting Revenue
    AWS Outages: The CEO’s Guide to Preventing Downtime & Protecting Revenue

      When AWS DynamoDB failed in October 2025, thousands of businesses discovered that

    More
    What I Wish CEOs Knew About Managing IP Reputation Risk
    What I Wish CEOs Knew About Managing IP Reputation Risk

    Executive Summary: What You Need to Know 🎯 IP reputation directly impacts your

    More
    How to Create a Subnet and Configure Routing
    How to Create a Subnet and Configure Routing

    Mastering Subnetting and Routing for Modern Networks Why Subnetting Matters in Today’s

    More