Tokamak Safety Factor Calculator

Find the tokamak safety factor q = rB_t/(RB_p), the key parameter that governs magnetohydrodynamic stability in a tokamak.

🛡️ Tokamak Safety Factor Calculator
m
m
T
T
Safety factor (q)
Aspect ratio (A=R/r)
Step-by-step working

🛡️ What is the Tokamak Safety Factor Calculator?

This tokamak safety factor calculator finds q, the dimensionless number describing how tightly the magnetic field lines are wound helically around a tokamak plasma. Enter a minor radius position, the major radius, and the toroidal and poloidal field strengths, and it returns q along with the local aspect ratio.

q(r) = rB_t/(RB_p) is the standard cylindrical (large aspect ratio) approximation, the classic introductory formula for the safety factor found in every plasma physics textbook.

Low-order rational values of q, especially q=1 and q=2, are physically significant: they are resonant surfaces where magnetic islands can form, driving sawtooth crashes and tearing-mode instabilities that limit tokamak performance and can trigger disruptions.

This calculator is useful for plasma physics and fusion engineering students studying MHD stability, and for anyone wanting a quick estimate of q for a given tokamak geometry and field configuration.

📐 Formula

q(r)  =  (r Bt) / (R Bp)
r = minor radius position, R = major radius
Bt = toroidal magnetic field, Bp = poloidal magnetic field
Cylindrical (large aspect ratio) approximation
Example: ITER-like (r=2m, R=6.2m, Bt=5.3T, Bp=0.5T): q ≈ 3.4194.

📖 How to Use This Calculator

Steps

1
Enter the minor radius position and major radius.
2
Enter the toroidal and poloidal field strengths.
3
Read the safety factor and stability note.

💡 Example Calculations

Example 1 - ITER-like tokamak

1
r=2 m, R=6.2 m, Bt=5.3 T, Bp=0.5 T
2
q = 3.4194, aspect ratio A=3.1000
3
q > 2, comfortably away from the low-order disruption boundary
q = 3.4194
Try this example →

Example 2 - Smaller research tokamak

1
r=0.5 m, R=1.5 m, Bt=2.0 T, Bp=0.3 T
2
q = 2.2222, aspect ratio A=3.0000
3
q just above 2, near the m=2 tearing mode boundary
q = 2.2222
Try this example →

Example 3 - The q=1 sawtooth boundary

1
r=1 m, R=3 m, Bt=3 T, Bp=1 T
2
q = 1.0000 exactly, aspect ratio A=3.0000
3
q=1: unstable to internal kink modes, the classic sawtooth trigger surface
q = 1.0000
Try this example →

❓ Frequently Asked Questions

What is the tokamak safety factor?+
The safety factor q is a dimensionless number describing the helical pitch of the magnetic field lines in a tokamak: it equals the number of times a field line travels the long way around the torus (toroidally) for each single trip the short way (poloidally). Low q means tightly wound, highly twisted field lines; high q means gently twisted, nearly straight field lines.
What is the formula for the safety factor?+
In the simple cylindrical (large aspect ratio) approximation, q(r) = rB_t/(RB_p), where r is the minor-radius position, R is the major radius, B_t is the toroidal field, and B_p is the poloidal field (produced mainly by the plasma current) at that position.
Why is q called the "safety" factor?+
Because its value determines how magnetohydrodynamically stable the plasma is against resonant instabilities. Low-order rational values of q, most importantly q=1 and q=2, correspond to magnetic surfaces where field lines close on themselves after only a few turns, which resonantly drives the growth of magnetic islands and can trigger disruptive instabilities.
What happens at q=1?+
A magnetic surface with q=1 inside the plasma core is associated with the internal kink mode, which drives the well-known "sawtooth" oscillation: the core temperature and density periodically crash and rebuild as the q=1 surface reconnects, a routinely observed and generally tolerable instability in most tokamaks.
What happens at q=2?+
A q=2 rational surface can drive the m=2, n=1 tearing mode, which forms magnetic islands that degrade confinement and, if they grow large enough or lock to the vacuum vessel wall, can trigger a full plasma disruption, an abrupt, potentially damaging loss of the entire plasma current.
What is a typical edge safety factor in an operating tokamak?+
Most tokamak operating scenarios target an edge safety factor q_a in the range of roughly 3 to 4, comfortably above the dangerous q=2 boundary, to provide adequate stability margin while still allowing enough plasma current for good confinement.
How does the safety factor relate to the aspect ratio?+
For fixed field ratio B_t/B_p, the safety factor scales with r/R, the inverse of the local aspect ratio. Since B_p itself is generated by the plasma current, which is also tied to the machine's overall aspect ratio and size, q is ultimately set by a combination of the toroidal field strength, plasma current, and geometry.
Is this the exact safety factor formula used in real tokamak design?+
No. This calculator uses the classic cylindrical (large aspect ratio, circular cross-section) approximation, the standard textbook introduction to the concept. Real tokamak q-profiles depend on the detailed current density distribution and plasma shape (elongation, triangularity) and are computed numerically with equilibrium codes such as those solving the Grad-Shafranov equation.
Does the safety factor vary with minor radius inside the plasma?+
Yes, q(r) generally increases from the core to the edge in a typical tokamak, since the poloidal field from the enclosed plasma current builds up differently than the roughly uniform toroidal field. The full q(r) profile, not just a single value, is what determines the complete MHD stability picture.
Why do fusion reactor designs care so much about the safety factor?+
Disruptions triggered by low-q instabilities can dump the plasma's full thermal and magnetic energy onto the vessel walls in milliseconds, a serious engineering concern for large reactors. Maintaining an adequate safety factor margin throughout the discharge is therefore a core requirement of tokamak operational scenarios, not just an academic detail.

What is the tokamak safety factor?

The safety factor q is a dimensionless number describing the helical pitch of the magnetic field lines in a tokamak: it equals the number of times a field line travels the long way around the torus (toroidally) for each single trip the short way (poloidally). Low q means tightly wound, highly twisted field lines; high q means gently twisted, nearly straight field lines.

What is the formula for the safety factor?

In the simple cylindrical (large aspect ratio) approximation, q(r) = rB_t/(RB_p), where r is the minor-radius position, R is the major radius, B_t is the toroidal field, and B_p is the poloidal field (produced mainly by the plasma current) at that position.

Why is q called the 'safety' factor?

Because its value determines how magnetohydrodynamically stable the plasma is against resonant instabilities. Low-order rational values of q, most importantly q=1 and q=2, correspond to magnetic surfaces where field lines close on themselves after only a few turns, which resonantly drives the growth of magnetic islands and can trigger disruptive instabilities.

What happens at q=1?

A magnetic surface with q=1 inside the plasma core is associated with the internal kink mode, which drives the well-known 'sawtooth' oscillation: the core temperature and density periodically crash and rebuild as the q=1 surface reconnects, a routinely observed and generally tolerable instability in most tokamaks.

What happens at q=2?

A q=2 rational surface can drive the m=2, n=1 tearing mode, which forms magnetic islands that degrade confinement and, if they grow large enough or lock to the vacuum vessel wall, can trigger a full plasma disruption, an abrupt, potentially damaging loss of the entire plasma current.

What is a typical edge safety factor in an operating tokamak?

Most tokamak operating scenarios target an edge safety factor q_a in the range of roughly 3 to 4, comfortably above the dangerous q=2 boundary, to provide adequate stability margin while still allowing enough plasma current for good confinement.

How does the safety factor relate to the aspect ratio?

For fixed field ratio B_t/B_p, the safety factor scales with r/R, the inverse of the local aspect ratio. Since B_p itself is generated by the plasma current, which is also tied to the machine's overall aspect ratio and size, q is ultimately set by a combination of the toroidal field strength, plasma current, and geometry.

Is this the exact safety factor formula used in real tokamak design?

No. This calculator uses the classic cylindrical (large aspect ratio, circular cross-section) approximation, the standard textbook introduction to the concept. Real tokamak q-profiles depend on the detailed current density distribution and plasma shape (elongation, triangularity) and are computed numerically with equilibrium codes such as those solving the Grad-Shafranov equation.

Does the safety factor vary with minor radius inside the plasma?

Yes, q(r) generally increases from the core to the edge in a typical tokamak, since the poloidal field from the enclosed plasma current builds up differently than the roughly uniform toroidal field. The full q(r) profile, not just a single value, is what determines the complete MHD stability picture.

Why do fusion reactor designs care so much about the safety factor?

Disruptions triggered by low-q instabilities can dump the plasma's full thermal and magnetic energy onto the vessel walls in milliseconds, a serious engineering concern for large reactors. Maintaining an adequate safety factor margin throughout the discharge is therefore a core requirement of tokamak operational scenarios, not just an academic detail.