Skip to content
CalculatorBuddy

IP Subnet Calculator

Calculate IPv4 and IPv6 networks, ranges, masks, host counts, identifiers, and address representations from an IP address and prefix.

Maintained by CalculatorBuddy TeamEditorial methodology

Add as a preferred source on Google (opens in a new tab)

IPv4 Subnet Calculator

ExampleSample values — edit any field to see your result.

Network class

Results update as you type.

Network

43.241.146.0

Estimated result

Address range
43.241.146.0 - 43.241.146.255
Usable hosts
254

Saved calculations stay only in this browser. Share copies a link containing your entered values.

Compare scenarios

Keep a baseline, then change an assumption to see its effect side by side.

Subnet details

PropertyValue
IP Address43.241.146.32
Network Address43.241.146.0
Usable Host IP Range43.241.146.1 - 43.241.146.254
Broadcast Address43.241.146.255
Total Number of Hosts256
Number of Usable Hosts254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Binary Subnet Mask11111111.11111111.11111111.00000000
IP ClassC
CIDR Notation/24
IP TypePublic
Short43.241.146.32 /24
Binary ID00101011111100011001001000100000
Integer ID737251872
Hex ID0x2bf19220
in-addr.arpa32.146.241.43.in-addr.arpa
IPv4 Mapped Address::ffff:2bf1.9220
6to4 Prefix2002:2bf1.9220::/48
Inspect IPv4 or IPv6 networks from an address and CIDR prefix. The results include address boundaries and the detailed representations commonly needed for routing, firewall, DNS, and network-planning work.

Examples

43.241.146.32/24

The network is 43.241.146.0, broadcast is 43.241.146.255, and the conventional usable range is 43.241.146.1–254: 254 usable hosts.

IPv6 documentation address /64

2001:db8:85a3::8a2e:370:7334/64 belongs to 2001:0db8:85a3:0000:: and contains 2⁶⁴ addresses.

Formula

network = IP AND subnet mask

broadcast = network OR wildcard mask

IPv4 total addresses are 2^(32 − prefix). IPv6 total addresses are 2^(128 − prefix).

Calculator results describe address math. Confirm allocation, reserved ranges, and point-to-point behavior against the standards and your network platform.

How to read an IPv4 subnet result

The CIDR prefix tells you how many of the 32 bits belong to the network. The remaining bits identify addresses inside that network. For a /24, 24 bits are fixed and 8 vary, so the block contains 2^8 = 256 addresses. The subnet mask is 255.255.255.0, and the wildcard mask is its bitwise inverse, 0.0.0.255.

For traditional multi-access IPv4 subnets, the first address identifies the network and the last is the broadcast address. The calculator therefore reports total − 2 conventional usable hosts. RFC 3021 permits special /31 point-to-point links, and a /32 identifies a single address; this page retains the conventional zero-usable-host display for parity with its reference calculator.

Common IPv4 block sizes

PrefixSubnet maskTotal addressesConventional usable hosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242

IPv6 prefixes are different

IPv6 addresses are 128 bits long. RFC 4291 writes a prefix as an IPv6 address followed by a slash and prefix length. A /64 fixes the first 64 bits and leaves 64 interface bits, yielding 18,446,744,073,709,551,616 possible addresses. IPv6 does not use an IPv4-style broadcast address, so the output focuses on the network prefix, expanded address, address type, and block size.

Use the Scientific Notation Calculator to express very large IPv6 counts compactly, and the Conversion Calculator for ordinary measurement conversions.

Planning and validation notes

  • Enter an address that belongs to the network; the calculator clears the host bits to derive the network boundary.
  • Verify private, documentation, multicast, loopback, and other reserved ranges before assigning an address. A mathematically valid block is not automatically available for public use.
  • Treat wildcard-mask syntax as platform-specific configuration guidance, not as a firewall rule ready to paste without review.
  • Do not publish a real internal address plan merely to calculate its boundaries; the computation works just as well with a representative address.

Sources

Addressing scope

The IPv4 result shows network, broadcast, and conventional usable-host ranges; /31 point-to-point and /32 host routes have protocol-specific uses that differ from the classic host-count convention. IPv6 has no broadcast address, and a prefix calculation does not configure routing, neighbor discovery, firewalls, or address allocation. Refer to RFC 4632 and the IPv6 Addressing Architecture, RFC 4291 for the underlying conventions.

Network planning and access credentials

A subnet calculation plans addresses; it does not secure the router or the devices using them. If you also need a new account password, the Password Generator creates one on your device. Do not put passwords into the network address fields or include them in a shared calculation.

Frequently asked questions

What does a CIDR prefix mean?
The number after the slash is the count of leading network bits. IPv4 /24 leaves 8 host bits and contains 256 total addresses.
Why are two IPv4 addresses normally unusable?
Traditional IPv4 subnets reserve the first address as the network address and the last as the broadcast address. Point-to-point /31 and host /32 networks follow special rules; this calculator reports zero conventional usable hosts for those prefixes.
How many addresses are in an IPv6 /64?
It contains 2 to the power of 64 addresses, or 18,446,744,073,709,551,616.
What is a wildcard mask?
It is the bitwise inverse of an IPv4 subnet mask and is commonly used in routing and access-control rules.

Related calculators