ForHosting KIT · Developer Utilities

Outlet spacing calculator

The outlet spacing calculator turns a room's qualifying wall-line length and a receptacle spacing rule into a practical minimum outlet count.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the total length and the maximum distance that any point along that wall line may be from a receptacle. The calculator doubles that distance to obtain the greatest outlet-to-outlet spacing, then rounds the required count upward. It is useful for early layouts, quantity estimates, and checking a simple continuous room perimeter before detailed electrical design. Always confirm which wall spaces qualify and which local code edition applies to the project.

Measure the qualifying wall line consistently

Begin with the wall space that the applicable electrical rule actually treats as eligible for general receptacle placement. Measure along the floor line rather than cutting diagonally across the room, and keep every value in one unit. A simple uninterrupted room can often be represented by one total wall-line length. Doors, fireplaces, fixed cabinets, railings, and other interruptions may divide that line into independent wall spaces under the code used in your area. If they do, calculate each segment separately and add the resulting outlet counts; merely adding all segment lengths first can undercount because each segment has its own ends to cover. The calculator accepts feet or meters, but it does not convert between them: the wall length and spacing rule must already use the selected unit. Include only the wall spaces relevant to the rule you are checking. Kitchens, bathrooms, laundry areas, hallways, countertops, and outdoor locations commonly have specialized provisions that a general room-wall estimate does not replace. Good measurements make the arithmetic useful, while a carefully calculated number from the wrong wall definition is still the wrong number.

Understand how the spacing count is calculated

The spacing rule entered here means the greatest permitted distance from any point along the qualifying wall line to a receptacle, measured along that line. If that distance is 6 feet, one receptacle can cover up to 6 feet on either side, and adjacent receptacles may therefore be no more than 12 feet apart. The calculator expresses that relationship as a maximum outlet spacing of two times the rule distance. It divides the wall length by that maximum spacing and uses the ceiling of the result, because a fractional outlet cannot satisfy the remaining length. For example, 40 feet divided by 12 feet is about 3.33, so the planning count is four receptacles. The returned average wall length per outlet is a layout aid, not a new code limit. Actual positions must still keep every relevant point within the rule distance. The formula models a continuous wall line or closed room perimeter. It does not select box locations, account for furniture, or prove that a proposed arrangement satisfies every exception and measurement convention in a governing code.

Use the result as a planning minimum

Treat the calculated outlet count as a starting quantity for a straightforward spacing layout, not as permission to install exactly that many everywhere. First compare the entered rule with the code edition adopted by the authority having jurisdiction, because requirements and definitions can vary by country, occupancy, room type, and local amendment. Next sketch actual receptacle positions along the measured wall line and verify the distance from endpoints, corners, and every point between adjacent outlets. Add receptacles when a door swing, built-in feature, intended furniture arrangement, accessibility need, or convenient appliance location makes the bare minimum impractical. More receptacles can reduce extension-cord use even when the minimum spacing has already been met. For construction documents, retain the segment measurements and assumptions so the count can be reviewed rather than appearing as an unexplained total. A licensed electrician or electrical designer can identify special circuits, tamper resistance, ground-fault or arc-fault protection, mounting rules, and other requirements outside this calculator. The API costs $0.002 per request and returns the inputs, derived maximum spacing, rounded count, and formula for auditable automation.

Plan a living-room layout

Estimate the minimum general-use receptacle count from the room's qualifying continuous wall line before placing boxes on a drawing.

Prepare an early material takeoff

Turn measured wall lengths into a repeatable preliminary count for receptacles and boxes while keeping local-code review separate.

Check multiple wall segments

Run each independently interrupted wall space separately, then add the counts to avoid losing endpoint coverage in a combined total.

What does spacing_rule mean?

It is the maximum allowed distance from any point along the qualifying wall line to a receptacle. Maximum spacing between adjacent receptacles is twice this value.

Why does the calculator round up?

Any remainder represents wall line that still needs coverage, and a fraction of a receptacle cannot provide it.

Can I enter meters?

Yes. Select m and provide both wall_length and spacing_rule in meters. The calculator labels the result but does not convert the values.

Should separate wall segments be combined?

Calculate separately when the governing code treats interruptions as distinct wall spaces. Combining them first may underestimate the count needed near segment ends.

Does this replace an electrical code review?

No. It applies one spacing formula only. Confirm qualifying wall spaces, room-specific rules, protection, circuits, amendments, and installation details with the local authority or a qualified professional.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/home/outlet-spacing

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/home/outlet-spacing \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"wall_length":40}'
{
  "wall_length": 40
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "home.outlet_spacing",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →