{"id":67161,"date":"2026-10-20T09:51:52","date_gmt":"2026-10-20T06:51:52","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=67161"},"modified":"2026-10-20T09:51:52","modified_gmt":"2026-10-20T06:51:52","slug":"ip-subnet-calculator","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/web-tools\/ip-subnet-calculator\/","title":{"rendered":"IP Subnet Calculator"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Find IPv4 Network and Host Addresses<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"67161\" data-favorite-title=\"Subnet\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/web-tools\/ip-subnet-calculator\/\" data-favorite-excerpt=\"Find an IPv4 network address, broadcast address, host range, and address count. Enter an IP address and choose a prefix length or subnet mask; you can also split the subnet.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-window-code\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/web-tools\/ip-subnet-calculator\/\" method=\"POST\" class=\"calculator\" id=\"calculator-67161\" data-post=\"67161\"><fieldset class=\"fieldset-input is-2\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">IP address<\/label><input type=\"text\" name=\"ip_address\" id=\"field-1\" aria-describedby=\"calc-info-1\" placeholder=\"192.168.1.10 or 192.168.1.10\/24\" step=\"any\" value=\"192.168.1.10\"\/><small id=\"calc-info-1\">An optional \/prefix in this field overrides the prefix or subnet mask selected below.<\/small><\/div><div class=\"field\" id=\"input-2\"><label for=\"field-2\">Subnet format<\/label><div class=\"grid grid-cols-1\"><select id=\"field-2\" name=\"subnet_format\"><option value=\"prefix\" selected>Prefix length<\/option><option value=\"mask\">Dotted subnet mask<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-3\"><label for=\"field-3\">Prefix length<\/label><div class=\"grid grid-cols-1\"><select id=\"field-3\" name=\"prefix_length\"><option value=\"\/0\">\/0<\/option><option value=\"\/1\">\/1<\/option><option value=\"\/2\">\/2<\/option><option value=\"\/3\">\/3<\/option><option value=\"\/4\">\/4<\/option><option value=\"\/5\">\/5<\/option><option value=\"\/6\">\/6<\/option><option value=\"\/7\">\/7<\/option><option value=\"\/8\">\/8<\/option><option value=\"\/9\">\/9<\/option><option value=\"\/10\">\/10<\/option><option value=\"\/11\">\/11<\/option><option value=\"\/12\">\/12<\/option><option value=\"\/13\">\/13<\/option><option value=\"\/14\">\/14<\/option><option value=\"\/15\">\/15<\/option><option value=\"\/16\">\/16<\/option><option value=\"\/17\">\/17<\/option><option value=\"\/18\">\/18<\/option><option value=\"\/19\">\/19<\/option><option value=\"\/20\">\/20<\/option><option value=\"\/21\">\/21<\/option><option value=\"\/22\">\/22<\/option><option value=\"\/23\">\/23<\/option><option value=\"\/24\">\/24<\/option><option value=\"\/25\">\/25<\/option><option value=\"\/26\">\/26<\/option><option value=\"\/27\">\/27<\/option><option value=\"\/28\">\/28<\/option><option value=\"\/29\">\/29<\/option><option value=\"\/30\">\/30<\/option><option value=\"\/31\">\/31<\/option><option value=\"\/32\">\/32<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-4\" hidden><label for=\"field-4\">Subnet mask<\/label><input type=\"text\" name=\"subnet_mask\" id=\"field-4\" aria-describedby=\"calc-info-4\" placeholder=\"255.255.255.0\" step=\"any\" value=\"255.255.255.0\"\/><small id=\"calc-info-4\">Only contiguous subnet masks are valid.<\/small><\/div><div class=\"field is-single\" id=\"input-5\"><label for=\"field-5\">Split subnet<\/label><div class=\"grid grid-cols-1\"><select id=\"field-5\" name=\"split_subnet\"><option value=\"none\" selected>Do not split<\/option><option value=\"count\">Into N equal subnets<\/option><option value=\"prefix\">By new prefix length<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field\" id=\"input-6\" hidden><label for=\"field-6\">Number of subnets (N)<\/label><input type=\"text\" name=\"number_of_subnets_n\" id=\"field-6\" aria-describedby=\"calc-info-6\" data-number inputmode=\"decimal\" autocomplete=\"off\" spellcheck=\"false\" min=\"2\" max=\"256\" value=\"4\"\/><small id=\"calc-info-6\">Enter a power of two from 2 to 256.<\/small><\/div><div class=\"field\" id=\"input-7\" hidden><label for=\"field-7\">New prefix length<\/label><div class=\"grid grid-cols-1\"><select id=\"field-7\" name=\"new_prefix_length\"><option value=\"1\">\/1<\/option><option value=\"2\">\/2<\/option><option value=\"3\">\/3<\/option><option value=\"4\">\/4<\/option><option value=\"5\">\/5<\/option><option value=\"6\">\/6<\/option><option value=\"7\">\/7<\/option><option value=\"8\">\/8<\/option><option value=\"9\">\/9<\/option><option value=\"10\">\/10<\/option><option value=\"11\">\/11<\/option><option value=\"12\">\/12<\/option><option value=\"13\">\/13<\/option><option value=\"14\">\/14<\/option><option value=\"15\">\/15<\/option><option value=\"16\">\/16<\/option><option value=\"17\">\/17<\/option><option value=\"18\">\/18<\/option><option value=\"19\">\/19<\/option><option value=\"20\">\/20<\/option><option value=\"21\">\/21<\/option><option value=\"22\">\/22<\/option><option value=\"23\">\/23<\/option><option value=\"24\">\/24<\/option><option value=\"25\">\/25<\/option><option value=\"26\" selected>\/26<\/option><option value=\"27\">\/27<\/option><option value=\"28\">\/28<\/option><option value=\"29\">\/29<\/option><option value=\"30\">\/30<\/option><option value=\"31\">\/31<\/option><option value=\"32\">\/32<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"67161\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Subnet Details<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Network address<\/span><\/span><span class=\"field-value\" id=\"result-1\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-2\"><span class=\"field-title\"><span>Broadcast address<\/span><\/span><span class=\"field-value\" id=\"result-2\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-3\"><span class=\"field-title\"><span>Subnet mask<\/span><\/span><span class=\"field-value\" id=\"result-3\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-4\"><span class=\"field-title\"><span>Wildcard mask<\/span><\/span><span class=\"field-value\" id=\"result-4\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-5\"><span class=\"field-title\"><span>CIDR notation<\/span><\/span><span class=\"field-value\" id=\"result-5\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-6\"><span class=\"field-title\"><span>First usable host<\/span><\/span><span class=\"field-value\" id=\"result-6\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-7\"><span class=\"field-title\"><span>Last usable host<\/span><\/span><span class=\"field-value\" id=\"result-7\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-8\"><span class=\"field-title\"><span>Total addresses<\/span><\/span><span class=\"field-value\" id=\"result-8\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-9\"><span class=\"field-title\"><span>Usable hosts<\/span><\/span><span class=\"field-value\" id=\"result-9\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-10\"><span class=\"field-title\"><span>IP class<\/span><\/span><span class=\"field-value\" id=\"result-10\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-11\"><span class=\"field-title\"><span>Address type<\/span><\/span><span class=\"field-value\" id=\"result-11\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-12\"><span class=\"field-title\"><span>Binary IP and mask<\/span><\/span><span class=\"field-value\" id=\"result-12\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-13\"><span class=\"field-title\"><span>Hexadecimal IP and mask<\/span><\/span><span class=\"field-value\" id=\"result-13\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-14\"><span class=\"field-title\"><span>Equal subnets<\/span><\/span><span class=\"field-value\" id=\"result-14\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"67161\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Subnet Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[M=\\text{32-bit mask with }p\\text{ leading 1 bits}\\]\n\\[N=I\\mathbin{\\mathrm{AND}}M\\]\n\\[W=\\mathbin{\\mathrm{NOT}}M,\\qquad B=N\\mathbin{\\mathrm{OR}}W\\]\n\\[T=2^{32-p}\\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(I\\) \u2014 the IPv4 address represented as a 32-bit number.<\/li>\n<li>\\(p\\) \u2014 the prefix length, from 0 to 32.<\/li>\n<li>\\(M\\) \u2014 the subnet mask; \\(W\\) is its inverse, or wildcard mask.<\/li>\n<li>\\(N\\) \u2014 the network address; \\(B\\) is the broadcast address shown by the calculator.<\/li>\n<li>\\(T\\) \u2014 the total number of addresses in the subnet.<\/li>\n<\/ul>\n<p>The mask retains the network bits of the IP address. The remaining bits determine the subnet\u2019s address range.<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Subnet \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> use the default IP address, 192.168.1.10, with the default prefix length, \/24, and leave Split subnet set to Do not split.<\/p>\n<p>For \/24, the subnet mask is 255.255.255.0 and the wildcard mask is 0.0.0.255.<\/p>\n<p>\\[N=192.168.1.10\\mathbin{\\mathrm{AND}}255.255.255.0=192.168.1.0\\]<\/p>\n<p>\\[B=192.168.1.0\\mathbin{\\mathrm{OR}}0.0.0.255=192.168.1.255\\]<\/p>\n<p>\\[T=2^{32-24}=256,\\qquad \\text{usable hosts}=256-2=254\\]<\/p>\n<p><strong>Result:<\/strong> the subnet is 192.168.1.0\/24, with usable host addresses from 192.168.1.1 through 192.168.1.254. It contains 256 total addresses and 254 usable hosts.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to use the calculator<\/h2>\n<ol>\n<li>Enter an IPv4 address in <strong>IP address<\/strong>, such as 192.168.1.10. You can include a CIDR suffix, such as 192.168.1.10\/24; that suffix overrides the prefix or mask selected below.<\/li>\n<li>Choose <strong>Subnet format<\/strong>. Select <strong>Prefix length<\/strong> to choose a value from \/0 to \/32, or <strong>Dotted subnet mask<\/strong> to enter a contiguous <strong>Subnet mask<\/strong>, such as 255.255.255.0.<\/li>\n<li>Set <strong>Split subnet<\/strong> to <strong>Do not split<\/strong> for details about the original subnet. To divide it, select <strong>Into N equal subnets<\/strong> and enter <strong>Number of subnets (N)<\/strong>, or select <strong>By new prefix length<\/strong> and choose <strong>New prefix length<\/strong>.<\/li>\n<li>Read <strong>Subnet Details<\/strong> for the network, address range, masks, and host counts. If you requested a split, inspect <strong>Equal subnets<\/strong> for each resulting network and its host range.<\/li>\n<\/ol>\n<h2>What an IPv4 subnet tells you<\/h2>\n<p>An IPv4 address has 32 bits. A prefix length specifies how many leading bits identify the network; the remaining bits distinguish addresses within it. CIDR notation combines a network address and prefix, such as 192.168.1.0\/24. A dotted subnet mask expresses the same boundary: \/24 corresponds to 255.255.255.0. The wildcard mask reverses the mask\u2019s bits, so it is 0.0.0.255 in this example.<\/p>\n<p><strong>Network address<\/strong> is the first address in the calculated range, and <strong>Broadcast address<\/strong> is the last. In an ordinary subnet from \/0 through \/30, the calculator excludes those two endpoints when reporting <strong>First usable host<\/strong>, <strong>Last usable host<\/strong>, and <strong>Usable hosts<\/strong>. <strong>Total addresses<\/strong> still includes both endpoints. These figures describe the size of the range, not how many devices are connected or how many addresses your network can actually assign.<\/p>\n<p><strong>IP class<\/strong> describes the entered address using historical classful categories. Modern subnet boundaries come from the selected prefix or mask, not the class. <strong>Address type<\/strong> classifies the entered IP against common private and special-use ranges; it does not classify every address in the resulting subnet. A \u201cPublic\u201d label only means the IP did not match the common special-use ranges checked here\u2014it does not establish that the address is assigned or reachable.<\/p>\n<h2>Splitting a subnet into equal parts<\/h2>\n<p>To make \\(s\\) equal subnets, where \\(s\\) is a power of two, add \\(\\log_2(s)\\) bits to the original prefix. For example, splitting a \/24 into four subnets produces \/26 networks. Each \/26 contains \\(2^{32-26}=64\\) total addresses and, under the usual endpoint rule, 62 usable hosts. The four networks begin at 192.168.1.0, 192.168.1.64, 192.168.1.128, and 192.168.1.192.<\/p>\n<p>Alternatively, choose a longer <strong>New prefix length<\/strong>. The calculator determines how many equal subnets fit and lists their network address, displayed broadcast address, host range, and usable-host count. A split must fit within the original prefix and produce no more than 256 rows. When entering <strong>Number of subnets (N)<\/strong>, use a power of two between 2 and 256.<\/p>\n<h2>Assumptions and practical limits<\/h2>\n<ul>\n<li>Only IPv4 addresses and contiguous subnet masks are accepted. This calculator does not process IPv6.<\/li>\n<li>For \/31, both addresses count as usable on a point-to-point link under RFC 3021. The field labeled <strong>Broadcast address<\/strong> still displays the higher address, but it is not a conventional broadcast address in that use. For \/32, the single address counts as one usable host, and the network and displayed broadcast addresses are identical.<\/li>\n<li>Host counts are mathematical counts. Reserved ranges, routing rules, provider assignments, and local configuration may further restrict which addresses you can use.<\/li>\n<\/ul>\n<p>The <strong>Binary IP and mask<\/strong> result makes the network-bit boundary visible; the <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/binary-converter\/\">Binary Converter<\/a> can help when examining individual bit values. The <strong>Hexadecimal IP and mask<\/strong> result shows each 32-bit value in hexadecimal, which you can explore further with the <a href=\"https:\/\/wpcalc.com\/en\/web-tools\/hex-converter\/\">Hex Converter<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find an IPv4 network address, broadcast address, host range, and address count. Enter an IP address and choose a prefix length or subnet mask; you can also split the subnet.<\/p>\n","protected":false},"author":3168,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[102],"class_list":["post-67161","post","type-post","status-publish","format-standard","hentry","category-web-tools","tag-network-tools"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/3168"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=67161"}],"version-history":[{"count":1,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67161\/revisions"}],"predecessor-version":[{"id":67212,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/67161\/revisions\/67212"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=67161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=67161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=67161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}