Server Sizing Calculator
Work backwards from the workload to the hardware. Cores, memory, IOPS and capacity are sized separately, and the one that actually limits your build is named.
Inputs
Results
- 3.0:1 vCPU to physical core is above the 3:1 most guidance treats as comfortable. Watch CPU ready time.
- The drive count is set by capacity: 36 drives for the data against 4 for the I/O. Larger drives would shrink this.
What actually limits this build
Cores, memory, IOPS and capacity run out independently. The highlighted bar is the one setting the order.
Server count
CPU-boundDrive count
capacity-boundCores and capacity are driving this build, which usually means the spec is reasonably balanced.
Why not size to 100%
Response time against utilization. Flat and forgiving to about 60%, then vertical — which is why capacity targets exist.
- Response time at target
- 2.5x
- Requests already queued
- 1.50
- If one server fails
- 50%
Cores needed over the hardware's life
At 10% growth a year over 5 years. Sizing for today's load is what forces an unplanned upgrade.
Server count rises in year 2, to 5. Buying it up front costs capital; buying it later risks it being unavailable.
About this calculator
Sizing a server is the inverse of the usual question. Instead of asking what a machine draws, you start from the work it has to do and end at a bill of materials. The arithmetic is not hard, but there are four places it is normally got wrong, and this calculator is built around them.
You cannot size to 100%
A server at full utilization has an unbounded queue. Queuing theory puts the mean number of requests already waiting at U / (1 - U) and response time at 1 / (1 - U) times the unloaded figure. At 50% load one request is ahead of you; at 90% nine are, and the curve is effectively vertical past that. This is why every vendor's capacity guidance picks a target in the 40-70% band. Microsoft's Active Directory capacity planning documentation is the most explicit: target 40% peak CPU for an N+1 design and 60% for N, precisely so that losing a node lands the survivors near 80% instead of past the knee.
A core is only a core at the clock it was measured on
If the load figure came from 3.3 GHz parts and you are buying 2.6 GHz parts, you need 3.3 / 2.6 as many of them. Microsoft's own example turns a 10-processor requirement into 12. Virtualizing adds roughly another 10% for the hypervisor.
Growth compounds
Sizing for today's load on hardware you will keep for five years guarantees an unplanned upgrade. The requirement is today's load times (1 + g) ^ years, and the calculator shows which year the next server is needed.
Cores, memory, IOPS and capacity run out independently
This is the one most calculators skip. A build can have ample cores and be unusable because the array cannot carry the write load, or have plenty of terabytes and be short of spindles. Each is sized separately here and the binding constraint is named, because that is the cheapest thing to change: more memory per box, or faster drives, can remove a whole server or a whole shelf from the order.
The formula
Cores
Each line takes the result of the line above it. The order matters: headroom is applied once, in the utilization step, and everything after it scales that figure.
busy cores = units x busy cores per unit
after growth = busy cores x (1 + growth) ^ years
at target = after growth / target utilization
clock adj. = at target x (measured GHz / target GHz)
with virt. = clock adj. x (1 + hypervisor overhead)
cores to buy = with virt. / SMT gainWorked through with this calculator's own defaults, so you can check it against the result panel:
150 VMs x 0.6 busy cores per VM = 90.0 busy cores
x 1.10 ^ 5 10% a year for 5 years = 144.9
/ 0.60 60% utilization target = 241.5
x 2.6 / 2.6 same clock, no change = 241.5
x 1.10 hypervisor overhead = 265.7
/ 1.25 SMT throughput gain = 212.6 cores
ceil(212.6 / 64 cores per server) = 4 servers
+ 1 spare for N+1 = 5 serversBusy cores means cores actually consumed, not cores allocated. Handing the formula an allocation figure applies headroom twice and typically oversizes the build two or three times over. SMT is credited as throughput rather than as extra cores, because that is what it delivers: independent measurements of Intel SMT on server workloads cluster at 5-30%, so 1.25 is the usual planning multiplier.
Queuing
Why the utilization target is a design decision and not a preference.
requests queued = U / (1 - U)
response time = 1 / (1 - U) x unloaded
after one failure = load / (surviving servers x cores)At U = 0.5 one request is ahead of you and response time is 2x unloaded. At U = 0.8 it is four requests and 5x. At U = 0.9, nine requests and 10x.
Memory
working set = units x RAM per unit
per server = working set / servers + OS and agent reserveThat division by server count only holds for a service that distributes its data. For a replicated service such as a domain controller, every node holds the whole dataset, so extra servers buy no memory relief at all:
per server (replicated) = working set + OS and agent reserveAt 100,000 users that returns 18 GB per domain controller, which is the figure Microsoft's own worked example arrives at.
Storage capacity
data = units x GB per unit x (1 + growth) ^ years
snapshots = data x daily change rate x retention days
usable needed = (data + snapshots) / target fill level
raw needed = usable / (RAID efficiency x (1 - filesystem overhead))RAID efficiency is the usable fraction of a group: (n - parity) / n for RAID 5 and 6, or 0.5 for any mirror. Filesystem and array metadata take about another 10% on top.
Storage performance
Capacity and IOPS are separate requirements, and either one can set the drive count.
front-end IOPS = units x IOPS per unit x peak factor
back-end IOPS = front-end x (read% + write penalty x write%)
drives = back-end IOPS / IOPS per driveThe write penalty is how many back-end drive operations each front-end write costs:
RAID 0 1x striped, no protection
RAID 1 / RAID 10 2x write both halves of the mirror
RAID 5 4x read data, read parity, write data, write parity
RAID 6 6x as RAID 5, plus the second parity blockA worked check. 1,000 front-end IOPS at a 3:1 read/write ratio is 750 reads plus 250 writes:
RAID 5: 750 + (250 x 4) = 1,750 back-end IOPS
RAID 6: 750 + (250 x 6) = 2,250 back-end IOPSGoing the other way, to find what a drive set delivers:
front-end IOPS = (drives x IOPS per drive) / (read% + penalty x write%)So eight 200-IOPS drives at a 70/30 mix give about 842 front-end IOPS on RAID 5, against 1,231 on RAID 10 for the same eight drives. These are small-random-write figures. Full-stripe sequential writes are much cheaper, closer to 1.25x on RAID 5, and write cache absorbs some of the penalty on bursts.
Server count
for CPU = ceil(cores to buy / cores per server)
for memory = ceil(working set / (RAM per server - reserve))
servers = max(the two) + sparesWhichever of the two is larger is the binding constraint, and it is the cheapest thing to change. If memory is driving the count, more RAM per box may remove a whole server.
Common use cases
- Sizing a virtualization cluster from a VM inventory, with a defensible consolidation ratio rather than a guess
- Replacing ageing servers when the only data you have is peak CPU percentages from the outgoing fleet
- Checking a vendor's proposal: whether the quoted cores, memory and drive count actually hold the stated workload
- Deciding whether a build is CPU-bound or memory-bound before signing off the configuration
- Proving an array cannot carry a write-heavy workload on spinning disks, with the write penalty shown
- Budgeting a refresh cycle: what the workload needs in year one against year five at a given growth rate
- Justifying N+1 to a budget holder by showing where utilization lands when a node fails
- Sizing domain controllers, mail or file servers where each node holds a full replica of the data
Frequently Asked Questions
How do you calculate how many cores a server needs?
What utilization should I size a server to?
What is the difference between busy cores and allocated cores?
What vCPU to physical core ratio is safe?
Does Hyper-Threading double my cores?
How do I calculate IOPS for a RAID array?
Why does my drive count come out higher than my capacity needs?
How much growth should I plan for?
Do I need to add RAM for every server, or just once?
Should I buy fewer large servers or more small ones?
How accurate are the per-unit defaults?
What is the difference between sizing and capacity planning?
Spot an error? Have feedback?
Tell us what is wrong with the math, what is missing, or which server model you would like added. We read everything.
Spot an error? Have feedback?
Tell us what is wrong with the math, what is missing, or which server model you would like added. We read everything.
Related Calculators
Terminal Server Calculator
Terminal server calculator for RDS session hosts: users per server, hosts needed, vCPU and RAM, profile storage, bandwidth and running cost. Built on Microsoft's sizing guidance.
Server Power Consumption Calculator
Server power consumption calculator for Dell PowerEdge, HPE ProLiant, Lenovo ThinkSystem, Supermicro and Cisco UCS. Get watts, kWh, running cost, BTU/hr and amps.
42U Server Rack Power Consumption Calculator
Build a 42U rack from real servers, switches and storage and get its power draw in kW, amps, circuits, heat in BTU/hr, weight and running cost. Space, power and weight budgets in one view.
Server Room BTU Calculator
Server room BTU calculator for air conditioning sizing. Work out BTU/hr heat load from your servers, UPS, lighting and walls, then the AC capacity in BTU and tons to buy.