Air core solenoid inductance calculator
This air-core solenoid inductance calculator estimates the inductance of a single-layer coil from its number of turns, axial length, and enclosed cross-sectional area.
Run — free
It applies the standard long-solenoid equation with vacuum permeability and reports the result in henries, millihenries, and microhenries. Use SI units: metres for length and square metres for area. The calculation is deterministic and useful for early design work, classroom checks, and repeatable engineering pipelines, while remaining an ideal approximation rather than a substitute for measuring a finished coil.
Enter geometry in SI units
Provide the total number of complete winding turns, the axial length of the wound section in metres, and the internal cross-sectional area enclosed by a turn in square metres. For a round former, calculate area from its effective winding diameter using A = πd²/4. Use the diameter near the centre of the conductor rather than blindly using the bare former diameter when wire thickness is significant. The length is the occupied winding length, not the wire length unwound from the spool. All three inputs describe the same physical coil. Turns must be a whole, non-negative count, while length and area must be positive finite values. The calculator accepts zero turns and returns zero inductance, which is mathematically consistent and useful in automated validation. It rejects zero or negative geometry because division by zero and negative physical dimensions are outside the model. Convert millimetres to metres by dividing by 1,000, and convert square millimetres to square metres by dividing by 1,000,000 before submitting the values. Consistent units prevent the most common million-fold area error.
Understand the equation and result
The calculation uses L = μ₀N²A/l, where L is inductance in henries, μ₀ is the permeability of free space, N is the number of turns, A is cross-sectional area in square metres, and l is coil length in metres. The squared turn count is especially important: doubling the turns increases the ideal inductance by a factor of four when area and length remain unchanged. Doubling the enclosed area doubles inductance, while doubling coil length halves it. The response includes henries, millihenries, and microhenries so it can be used directly across common circuit scales without a separate unit conversion. It also returns the applied permeability, normalized inputs, formula, and model name for an auditable record. Precision controls displayed decimal rounding, not the underlying physical accuracy. A result with many decimal places is still only as reliable as the measurements and assumptions supplied. For automated use, the API price is $0.002 per request, and the same deterministic arithmetic can be run in the browser without sending the calculation to a remote model.
Know when the ideal model is appropriate
This equation describes a long, uniformly wound air-core solenoid whose magnetic field is concentrated inside the winding. It is a useful first estimate when coil length is comfortably greater than coil diameter, turns are distributed evenly, and no magnetic core or nearby ferromagnetic structure changes the field. A short or wide coil has stronger fringing fields, so a Wheeler-style geometry correction or electromagnetic simulation may better match reality. Closely packed wire also creates parasitic capacitance, and high-frequency skin and proximity effects make a real component depart from a simple lumped inductor. Lead length, turn spacing, insulation thickness, multilayer winding, conductive shields, mounting hardware, and measurement frequency can all affect the observed value. The calculator intentionally does not infer those corrections because its three requested inputs cannot describe them. Treat the output as a transparent baseline for design comparisons and sanity checks. When component tolerance matters, measure the completed coil with an LCR meter at the intended frequency and test it in its final mechanical environment. That final measurement captures construction details which an ideal analytical model cannot know.
What you can do with it
Size a prototype coil
Compare turn counts and former dimensions before winding an air-core inductor for a filter, sensor, or experiment.
Check a classroom calculation
Verify the SI-unit substitution for the long-solenoid inductance equation and inspect the result in several inductance units.
Automate design sweeps
Call the deterministic API repeatedly to compare candidate coil geometries in a reproducible engineering workflow.
FAQ
Which formula does the calculator use?
It uses L = μ₀N²A/l for an ideal long air-core solenoid, with all geometry expressed in SI units.
What units should I enter?
Enter coil length in metres and cross-sectional area in square metres. The result is returned in H, mH, and µH.
How do I find the area of a round coil?
Use A = πd²/4, where d is the effective diameter measured near the centreline of the winding conductor.
Does this work for multilayer or magnetic-core coils?
No. It assumes a single-layer, uniformly wound air-core solenoid. Multilayer windings and magnetic cores need models with additional geometry and material inputs.
Why might a measured coil differ from the result?
Finite-length fringing, winding spacing, leads, nearby materials, parasitic capacitance, construction tolerances, and measurement frequency can all shift real inductance.
What does an API request cost?
Each API calculation costs $0.002; the browser calculator is free to run.
For developers — API access
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.
API endpoint
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.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/elec/air-solenoid-inductance \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"number_of_turns":500,"coil_length_m":0.2,"cross_sectional_area_m2":0.0004}'const res = await fetch("https://api.kit.forhosting.com/elec/air-solenoid-inductance", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"number_of_turns": 500,
"coil_length_m": 0.2,
"cross_sectional_area_m2": 0.0004
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/elec/air-solenoid-inductance",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"number_of_turns": 500,
"coil_length_m": 0.2,
"cross_sectional_area_m2": 0.0004
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/elec/air-solenoid-inductance", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"number_of_turns":500,"coil_length_m":0.2,"cross_sectional_area_m2":0.0004}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"number_of_turns":500,"coil_length_m":0.2,"cross_sectional_area_m2":0.0004}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/elec/air-solenoid-inductance", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"number_of_turns": 500,
"coil_length_m": 0.2,
"cross_sectional_area_m2": 0.0004
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "elec.air_solenoid_inductance",
"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.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_turns | 1000000000 |
max_length_m | 1000000000 |
max_area_m2 | 1000000000 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |