/15 subnet calculator (255.254.0.0)

A /15 prefix fixes the first 15 bits of the address, leaving 17 bits for hosts. That gives 131,072 addresses in the block.

Usable hosts per subnet
131 070
= Exact /15 subnet
Total addresses in the block
131 072
Mask octet 1
255
Mask octet 2
254
Mask octet 3
0
Mask octet 4
0
Usable hosts across all the blocks
131 070
Blocks needed for the hosts you listed
1
Spare addresses in one block
131 020
Utilisation of one block
0.04 %
How many fit inside a /24
0
Show the working
  1. Number of these subnets = 1
  2. Hosts you need to fit = 50
  3. prefix = 15 = 15
  4. host_bits = 32 - 15 = 17
  5. Total addresses in the block = 2^17 = 131 072
  6. Usable hosts per subnet = 15 >= 31 ? (15 == 31 ? 2 : 1) : 131 072 - 2 = 131 070
  7. mask_value = 2^32 - 2^17 = 4 294 840 000
  8. Mask octet 1 = floor(4 294 840 000 / 2^24) = 255
  9. Mask octet 2 = floor(4 294 840 000 / 2^16) % 256 = 254
  10. Mask octet 3 = floor(4 294 840 000 / 2^8) % 256 = 0
  11. Mask octet 4 = 4 294 840 000 % 256 = 0
  12. total_addresses = 131 072 * 1 = 131 072
  13. Usable hosts across all the blocks = 131 070 * 1 = 131 070
  14. Blocks needed for the hosts you listed = 131 070 > 0 ? ceil(50 / 131 070) : 0 = 1
  15. Spare addresses in one block = 131 070 - 50 = 131 020
  16. Utilisation of one block = 131 070 > 0 ? 50 / 131 070 * 100 : 0 = 0.038 147 6
  17. How many fit inside a /24 = 15 >= 24 ? 2^(15 - 24) : 0 = 0

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • host bits = 32 - prefix length
    • total addresses = 2^host bits
    • usable hosts = total - 2, reserving the network and broadcast addresses
    • mask = 2^32 - 2^host bits, written as four octets

    The two reserved addresses are the all-zeros network address and the all-ones broadcast address.

    RFC 3021 makes a /31 usable as a two-address point-to-point link with no broadcast, and a /32 is a single host route. Both are special-cased here.

    This is IPv4. IPv6 does not reserve a broadcast address, so an IPv6 prefix has 2^(128 - n) usable addresses.

    This prefix at a glance

    Property Value
    CIDR /15
    Subnet mask 255.254.0.0
    Wildcard mask 0.1.255.255
    Total addresses 131,072
    Usable hosts 131,070
    Host bits 17

    Frequently asked

    How many hosts are in a /15?

    131,070 usable hosts, out of 131,072 total addresses.

    What subnet mask is a /15?

    255.254.0.0, with a wildcard mask of 0.1.255.255.

    Where the numbers come from

    • Address arithmetic follows RFC 4632 (CIDR) and RFC 3021 for the /31 case.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library