IP address planning calculator

Size the block for what the network will be, not for what it is today. Renumbering later is painful.

%
%
Prefix length to allocate
23
≈ Rounded IP address planning
Addresses needed
266
Usable addresses in that prefix
510
Spare addresses
244
Headroom factor
1.917
Projected devices
241
Show the working
  1. Devices today = 120
  2. Annual growth = 15
  3. Years to plan for = 5
  4. Infrastructure reserve = 10
  5. Projected devices = 120 * (1 + 15/100)^5 = 241.363
  6. with_reserve = 241.363 * (1 + 10/100) = 265.499
  7. Addresses needed = ceil(265.499) = 266
  8. bits = ceil(log2(266 + 2)) = 9
  9. Prefix length to allocate = clamp(32 - 9, 0, 32) = 23
  10. Usable addresses in that prefix = 2^9 - 2 = 510
  11. Spare addresses = 510 - 266 = 244
  12. Headroom factor = 266 > 0 ? 510 / 266 : 0 = 1.917 29

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

    • projected devices = today x (1 + growth)^years
    • prefix = 32 - ceil(log2(addresses + 2))

    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