# Calculadora de subredes IPv4

> Calcula una red IPv4, máscara y rango de direcciones.

[Open tool](https://www.toolcabana.com/es/subnet-calculator) · [Red y web](https://www.toolcabana.com/es/category/network-and-web)

Tool ID: subnet-calculator. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

The IPv4 subnet calculator takes an address with or without a /prefix and returns the network, first and last address, netmask, broadcast address, total addresses and usable hosts. Without a prefix it uses the CIDR setting, 24 by default. Calculations use exact integer arithmetic, and /31 and /32 networks follow point-to-point and single-host rules.

## Supported tasks (es)

Calcula una red IPv4, máscara y rango de direcciones.

## Steps (es)

1. Escribe o pega tu fuente, o carga un ejemplo.
2. Cambia los ajustes básicos o abre el modo avanzado para afinar el resultado.
3. Revisa y copia o descarga tu resultado. Pausa los resultados en vivo para ejecutar manualmente. Las fuentes o ajustes individuales de más de 20,000 caracteres requieren una ejecución explícita.

## Settings

- Prefijo CIDR (se usa si la dirección no tiene /prefijo) (es; key: prefix; type: number); minimum: 0; maximum: 32

## Limitations (es)

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Example input

```text
192.168.1.24/24
```

## Privacy and connections (es)

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

## Questions (es)

### How many usable hosts are in a /24 subnet?

A /24 has 256 total addresses and 254 usable hosts, because the network and broadcast addresses are subtracted. The calculator applies that subtraction for every prefix from /0 up to /30.

### How does the subnet calculator handle /31 and /32?

For /31 it reports no broadcast address and counts both addresses as usable, following point-to-point link semantics. A /32 identifies a single host, so total and usable addresses are both 1.

### Can I enter a host address instead of the network address?

Yes. Enter any address in the subnet, such as 192.168.1.24/24, and the calculator masks it to find the network 192.168.1.0/24 and its range. IPv6 input is rejected here; use the IPv6 subnet calculator for those.

### ¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

### ¿Cuáles son los límites de entrada?

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Related tools

- [IPv6 subnet calculator](https://www.toolcabana.com/es/ipv6-subnet)
- [IP address validator](https://www.toolcabana.com/es/ip-validator)
