This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
IP Subnet
Network Address
The Numbers
Network Address
The Numbers
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Splitting an IPv4 Address into Network and Host Portions
A subnet mask splits an IPv4 address into a network portion and a host portion, determining
which addresses belong to the same local network. Enter an IP address and its CIDR prefix
length (the “/24” in an address like 192.168.1.0/24), and this calculator finds the network
address, broadcast address, subnet mask, and the range of addresses actually usable by devices.
The Formula
Subnet mask: the prefix length’s worth of leading 1 bits, followed by 0 bits (e.g. /24 →
11111111.11111111.11111111.00000000 = 255.255.255.0).
Network address: the IP address with a bitwise AND against the subnet mask — this zeroes
out the host bits, leaving just the network.
Broadcast address: the network address with every host bit set to 1 — the highest address
in the subnet.
Usable hosts: every address in the subnet except the network and broadcast addresses,
since those are reserved — 232−Prefix Length−2 for ordinary subnets.
Two special cases carve out different rules: a /31 (RFC 3021) is used for point-to-point
links and treats both addresses as usable hosts, since there’s no need for a broadcast address
between exactly two devices. A /32 is a single-host route — the one address is both the
network and its own only usable host.
Worked Example
192.168.1.0/24 (a /24 prefix):
Subnet mask: 255.255.255.0 (24 bits of 1s, then 8 bits of 0s).
Network address: 192.168.1.0.
Broadcast address: 192.168.1.255.
Usable host range: 192.168.1.1 through 192.168.1.254 —
232−24−2=28−2=254 usable addresses.
Key Factors to Consider
Subnetting is how a large network is divided into smaller, more manageable segments.
Breaking a network into subnets can improve security (isolating traffic between segments),
performance (reducing broadcast traffic on any one segment), and organization — a common
practical reason to plan subnets deliberately rather than using one flat, large network.
Private IP address ranges (like 192.168.x.x, 10.x.x.x, and 172.16-31.x.x) are reserved for
internal networks and never routed on the public internet. These ranges are set aside
specifically for local networks like home routers and office LANs — this calculator works
identically for private and public address ranges, since the subnetting math itself doesn’t
depend on which range an address falls in.
A smaller prefix number (like /16) covers a much larger address range than a larger prefix
number (like /28). This inverse relationship — fewer bits reserved for the network portion
means more bits (and therefore more addresses) available for hosts — can be counterintuitive at
first, since the smaller number describes the bigger subnet.
IPv6 uses a fundamentally different, much larger addressing scheme than IPv4. This
calculator is specifically for IPv4 (32-bit) addresses and CIDR notation — IPv6 uses 128-bit
addresses with its own distinct subnetting conventions, not covered by this tool.
Common Mistakes
Forgetting to subtract the network and broadcast addresses when counting usable hosts. A /24
has 256 total addresses but only 254 usable ones — the first and last are reserved, a detail
that’s easy to overlook when quickly estimating capacity.
Assuming /31 and /32 follow the same reserved-address rule as every other prefix. A /31 is
specifically designed for point-to-point links and treats both of its addresses as usable, and a
/32 is a single address that’s both its own network and host — applying the standard “subtract
2” rule to either gives a wrong (or negative) answer.
Confusing which prefix number describes a bigger network. A /16 covers far more addresses
than a /28, even though 16 is the smaller number — fewer bits reserved for the network portion
leaves more bits, and therefore more addresses, for hosts.
Applying IPv4 subnetting math to an IPv6 address. IPv6 uses 128-bit addresses and its own
distinct subnetting conventions — this calculator’s formulas only apply to 32-bit IPv4 addresses.
Useful to Know
Setting up a home network and need to estimate the bandwidth it should support rather than its
addressing? The Internet Speed Requirement Calculator answers that separate question.
Working with numbers in a different base as part of networking or programming work? The Number
Base Converter Calculator converts between binary, decimal, hexadecimal, and other bases.
Need a strong, random password for a router or network device while you’re at it? The Password
Generator Calculator creates one to your specified requirements.
Dividir una Dirección IPv4 en Porciones de Red y Host
Una máscara de subred divide una dirección IPv4 en una porción de red y una porción de host,
determinando qué direcciones pertenecen a la misma red local. Ingresa una dirección IP y su
longitud de prefijo CIDR (el “/24” en una dirección como 192.168.1.0/24), y esta calculadora
encuentra la dirección de red, la dirección de difusión, la máscara de subred y el rango de
direcciones realmente utilizables por los dispositivos.
La fórmula
Máscara de subred: la cantidad de bits 1 iniciales correspondiente a la longitud del
prefijo, seguida de bits 0 (por ejemplo, /24 →
11111111.11111111.11111111.00000000 = 255.255.255.0).
Dirección de red: la dirección IP con un AND bit a bit contra la máscara de subred — esto
pone en cero los bits de host, dejando solo la red.
Dirección de difusión: la dirección de red con cada bit de host establecido en 1 — la
dirección más alta de la subred.
Hosts utilizables: cada dirección de la subred excepto las direcciones de red y de difusión,
ya que están reservadas — 232−Longitud de prefijo−2 para subredes
ordinarias.
Dos casos especiales establecen reglas distintas: un /31 (RFC 3021) se usa para enlaces punto
a punto y trata ambas direcciones como hosts utilizables, ya que no hay necesidad de una dirección
de difusión entre exactamente dos dispositivos. Un /32 es una ruta de host único — la única
dirección es tanto la red como su propio y único host utilizable.
Ejemplo resuelto
192.168.1.0/24 (un prefijo /24):
Máscara de subred: 255.255.255.0 (24 bits de 1, luego 8 bits de 0).
Dirección de red: 192.168.1.0.
Dirección de difusión: 192.168.1.255.
Rango de hosts utilizables: 192.168.1.1 a 192.168.1.254 —
232−24−2=28−2=254 direcciones utilizables.
Factores Clave a Considerar
La subdivisión en subredes es cómo una red grande se divide en segmentos más pequeños y
manejables. Dividir una red en subredes puede mejorar la seguridad (aislando el tráfico entre
segmentos), el rendimiento (reduciendo el tráfico de difusión en cualquier segmento) y la
organización — una razón práctica común para planificar subredes deliberadamente en lugar de usar
una sola red plana y grande.
Los rangos de direcciones IP privadas (como 192.168.x.x, 10.x.x.x y 172.16-31.x.x) están
reservados para redes internas y nunca se enrutan en internet público. Estos rangos se reservan
específicamente para redes locales como routers domésticos y redes LAN de oficina — esta
calculadora funciona de forma idéntica para rangos de direcciones privadas y públicas, ya que las
matemáticas de subdivisión en sí no dependen de en qué rango cae una dirección.
Un número de prefijo más pequeño (como /16) cubre un rango de direcciones mucho más grande que
un número de prefijo más grande (como /28). Esta relación inversa — menos bits reservados para
la porción de red significa más bits (y por lo tanto más direcciones) disponibles para hosts —
puede resultar contraintuitiva al principio, ya que el número más pequeño describe la subred más
grande.
IPv6 usa un esquema de direccionamiento fundamentalmente distinto y mucho más grande que
IPv4. Esta calculadora es específicamente para direcciones IPv4 (32 bits) y notación CIDR —
IPv6 usa direcciones de 128 bits con sus propias convenciones distintas de subdivisión, no
cubiertas por esta herramienta.
Errores Comunes
Olvidar restar las direcciones de red y difusión al contar hosts utilizables. Un /24 tiene
256 direcciones en total, pero solo 254 utilizables — la primera y la última están reservadas,
un detalle fácil de pasar por alto al estimar la capacidad rápidamente.
Asumir que /31 y /32 siguen la misma regla de direcciones reservadas que cualquier otro
prefijo. Un /31 está diseñado específicamente para enlaces punto a punto y trata ambas
direcciones como utilizables, y un /32 es una sola dirección que es tanto su propia red como su
propio host — aplicar la regla estándar de “restar 2” a cualquiera de ellos da una respuesta
incorrecta (o negativa).
Confundir qué número de prefijo describe una red más grande. Un /16 cubre muchas más
direcciones que un /28, aunque 16 sea el número más pequeño — menos bits reservados para la
porción de red deja más bits, y por lo tanto más direcciones, disponibles para hosts.
Aplicar las matemáticas de subdivisión de IPv4 a una dirección IPv6. IPv6 usa direcciones de
128 bits y sus propias convenciones distintas de subdivisión — las fórmulas de esta calculadora
solo aplican a direcciones IPv4 de 32 bits.
Útil Saber
¿Configurando una red doméstica y necesitas estimar el ancho de banda que debería admitir en
lugar de su direccionamiento? La Calculadora de Velocidad de Internet Necesaria responde a esa
pregunta distinta.
¿Trabajas con números en otra base como parte de trabajo de redes o programación? El Convertidor
de Base Numérica convierte entre binario, decimal, hexadecimal y otras bases.
¿Necesitas también una contraseña fuerte y aleatoria para un router o dispositivo de red? El
Generador de Contraseñas crea una según los requisitos que especifiques.
The number after the slash is how many leading bits of the 32-bit IP address are the network portion — a /24 means the first 24 bits identify the network, leaving the remaining 8 bits (256 addresses) for hosts on that network.
Why are 2 addresses subtracted from most subnets?
The lowest address in a subnet is reserved as the network address (identifying the subnet itself) and the highest is reserved as the broadcast address (for sending to every device on the subnet at once) — neither can be assigned to an individual device, which is why usable hosts is 2 less than the total address count.
Why don't /31 and /32 follow the same 2-address rule?
A /31 (RFC 3021) is specifically used for point-to-point links between exactly two devices, where reserving a broadcast address would waste half the available addresses — both addresses are treated as usable hosts instead. A /32 identifies exactly one address (a single host route), so that one address is both the network and its own usable host.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.