Transformer turns ratio calculator
1000 primary turns and 100 secondary turns give a 10 to 1 ratio, so 240 V in becomes 24 V out. Enter the turns and one known voltage to get the missing one and see whether the transformer steps down, steps up or only isolates. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Primary turns
- 1,000
- Secondary turns
- 100
- Primary voltage
- 240
- Turns ratio
- 10
- Configuration
- step-down
- Secondary voltage
- 24
- Solved
- secondary_voltage
An ideal transformer links primary and secondary windings through a fixed turns ratio: the number of primary turns divided by the number of secondary turns equals the primary voltage divided by the secondary voltage. Designers, electricians and students use that relationship every day to size isolation transformers, check step-down wall warts, plan multi-tap secondaries, or verify homework before a lab. This calculator takes primary and secondary turns, optionally a known RMS voltage on either side, and returns the turns ratio together with the missing voltage when one side is supplied. Zero turns on either winding are rejected with a clear invalid-input error instead of producing infinity or a silent NaN.
What the turns ratio means in an ideal transformer
A transformer transfers energy between circuits by magnetic coupling, not by a direct electrical connection between the windings. In the ideal model used for first-order design, the primary and secondary are perfect inductors with no resistance, no leakage flux and no core losses, so the voltage ratio equals the turns ratio exactly: Vp over Vs equals Np over Ns. The quantity a equals Np divided by Ns is therefore the single number that converts any primary voltage into the expected secondary voltage and vice versa.
When a is greater than one, the secondary has fewer turns than the primary and the device steps voltage down; when a is less than one, it steps voltage up; when a equals one, the secondary mirrors the primary for isolation without intentional transformation. Real transformers deviate slightly because of regulation, magnetising current and winding resistance, but the ideal ratio remains the reference every datasheet and textbook starts from. This capability implements only that ideal relation: it does not invent load regulation curves, core material tables or temperature derating.
Identical inputs always produce identical floating-point results because the implementation is pure arithmetic with no network calls, randomness or wall-clock dependence.
How to enter turns and voltages correctly
Primary turns and secondary turns are required and must each be a finite non-zero number. Fractional turns are accepted for theoretical exercises, but practical wound transformers use integer turns; zero on either side is always rejected because the ratio would be undefined. Optionally supply primary voltage, secondary voltage, or both.
If you provide exactly one voltage, the calculator solves the unknown side using Vs equals Vp divided by a, or Vp equals Vs times a. If you provide both voltages, they are echoed back together with the turns ratio and a voltage ratio for comparison, so you can spot a mismatch between a nameplate reading and the wound turns. Keep units consistent: use RMS volts for both sides when working with power-frequency transformers, and do not mix peak with RMS without converting first.
Polarity and phase shift are outside this contract; treat the voltages as magnitudes for sizing.
Reading the result and using it in design or study
When a voltage was solved, the field named in solved tells you which side was computed. For a classic mains step-down with one thousand primary turns, one hundred secondary turns and two hundred forty volts on the primary, the ratio is ten and the secondary is twenty-four volts. For a step-up filament or ignition example with fewer primary than secondary turns, the same algebra yields a ratio below one and a higher secondary voltage.
Failed validation never charges balance. Use the tool to check student homework, pre-size control-power transformers before ordering cores, or assert fixed ratios in continuous integration that must not depend on external services. When your application also needs current ratios, impedance reflection or magnetising current, compute those in a following step from the returned ratio rather than expecting this capability to expand beyond its well-defined turns-and-voltage contract.
What you can do with it
Power and control transformer sizing
Convert a known primary voltage and wound turns into the expected secondary RMS before ordering a control-power or isolation transformer.
Electrical engineering homework
Check student work that asks for turns ratio a equals Np over Ns or the missing winding voltage on an ideal transformer problem.
FAQ
What formula does the transformer turns ratio calculator use?
It uses the ideal-transformer relation a = Np / Ns = Vp / Vs. The turns ratio is primary turns divided by secondary turns; voltages map as Vs = Vp / a and Vp = Vs × a.
Why are zero turns rejected?
Turns ratio is undefined if either winding has zero turns.
Do I need to supply both voltages?
No. Turns alone return the ratio. Supply exactly one voltage to solve the other side, or both to echo them with the ratio for comparison.
Does this model real transformer losses and regulation?
No. It implements only the ideal relation between turns and voltages. Apply regulation, leakage and resistance corrections outside this step if needed.
Is the transformer turns ratio calculator free?
The browser tool is free and runs entirely on your device.
Related tools
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/transformer-turns \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"primary_turns":1000,"secondary_turns":100}'const res = await fetch("https://api.kit.forhosting.com/elec/transformer-turns", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"primary_turns": 1000,
"secondary_turns": 100
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/elec/transformer-turns",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"primary_turns": 1000,
"secondary_turns": 100
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/elec/transformer-turns", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"primary_turns":1000,"secondary_turns":100}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"primary_turns":1000,"secondary_turns":100}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/elec/transformer-turns", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"primary_turns": 1000,
"secondary_turns": 100
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "elec.transformer_turns",
"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.
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. |
Technical notes
The browser tool is free and runs locally; the same pure arithmetic is available over the API at the published base price of $0.002 per successful request.
How to enter turns and voltages correctly
Missing turns fields, non-numeric strings and non-finite values fail with messages that name the field so API clients and lab scripts can fix the request without guessing.
Reading the result and using it in design or study
The response always includes turns_ratio, the echoed primary and secondary turns, a configuration label of step-down, step-up or unity, and a units object. The published API base price is $0.002 per successful item; the on-page calculator remains free for interactive use.
Integration use cases
Lab verification and CI golden values
Produce deterministic ratio and voltage figures from fixed turn counts for lab reports or automated electronics self-checks.