Electrical Energy Calculator
Calculate electricity use from power and duration, or constant DC voltage and current. Compare energy use over different operating times in watt-hours, kilowatt-hours and joules.
Open toolEstimate a stepper motor's available torque at a speed from its holding torque, current, inductance and supply voltage, and see how microstepping changes step rate and torque per microstep.
Enter the motor's holding torque, rated phase current and phase inductance from its datasheet, and choose the torque unit the datasheet uses.
Enter the driver's supply voltage, the motor's full steps per revolution and the driver's microstep setting.
Enter the load torque the axis needs and the speed you want, or drag the speed slider under the chart.
Read the torque margin: below 1 the motor stalls, and below the safety factor it has less reserve than you asked for. The chart shows where your load sits under the motor's torque curve.
Compare the microstep settings in the table: each finer setting doubles the step rate, and the torque per microstep falls (about half per step from 1/4 on). Copy result copies the main values; Reset restores the example NEMA 17 motor on 24 V.
A stepper driver pushes the rated current through each winding on every step. At low speed the current has time to reach that value, so the motor keeps about its full torque. The winding's inductance slows every change of current, and above the corner speed the current no longer reaches its full value before the next step, so the torque falls.
This tool uses the simplest model of that curve: the holding torque up to the corner speed, then torque falling as 1 ÷ speed, which keeps the output power constant. The corner full-step rate is the supply voltage divided by twice the inductance times the current, so a higher supply voltage moves the corner to a higher speed. This corner formula is an estimate (from the All About Circuits stepper calculator), not a manufacturer rating, and it is conservative: it assumes the current must fully reverse within one full step.
The torque margin is the available torque divided by the load torque at the chosen speed. Below 1 the motor stalls and loses steps. A safety factor of 2 is a common allowance for the model's gaps, not a guarantee. Add the acceleration torque (J·α) to the load if you know the inertia, and avoid speeds where the motor resonates.
Microstepping divides each full step into smaller steps. The step rate the controller must send rises in proportion, and the torque that moves the rotor by one microstep falls to the holding torque times sin(90° ÷ microsteps): 70.71 % at 1/2, 9.802 % at 1/16 and 0.6136 % at 1/256.
Assumptions and limitations: a chopper (constant-current) driver; winding resistance and back-EMF are ignored, which makes a real curve fall earlier and more gradually; real pull-out torque at low speed is below the holding torque and dips at mid-band resonance; the load's inertia and acceleration are not included. With sine/cosine microstepping at rated peak current the available torque is about T_h ÷ √2 of the two-phase-on holding torque, so the flat region is optimistic by about 29 %; the safety factor absorbs this. The real curve ends at a finite speed set by back-EMF, and step rates above a few hundred kHz exceed the input limit of many drivers. The static lag assumes a sinusoidal torque–angle curve, at rest. Use the manufacturer's pull-out curve when it is published.
Does microstepping make my axis more accurate? Not by itself. A load torque pulls the rotor behind its commanded position by a fraction of a full step. When a friction load's lag is larger than one microstep, finer microstepping adds smoothness but no accuracy (a constant load in one direction gives a repeatable offset).
Why does my stepper stall at high speed but not at low speed? Its torque falls above the corner speed. Raising the driver's supply voltage, within the driver's and motor's ratings, raises the corner speed and the torque at high speed.
What supply voltage should I use? Geckodrive's rule of thumb is 32 × √L, with L in mH: about 57 V for a 3.2 mH motor. Never exceed the driver's maximum rating; a higher voltage also heats the motor more.
Related tools: the Stepper steps-per-mm / steps-per-degree calculator (044) for firmware steps per unit, the Trapezoidal motion-profile generator (162) for move speeds and times, the DC-motor curve visualizer (138, add when live) for brushed motors, and the Motor-controller voltage/current estimator (145, add when live) for brushed-motor drivers.
Corner speed: f_c = V ÷ (2 × L × I) full steps per second; n_c = 60 × f_c ÷ s rpm.
Pull-out torque: T(n) = T_h up to n_c; T(n) = T_h × n_c ÷ n above it.
Torque margin: M = T(n) ÷ T_L; the motor stalls below 1.
Step rate and torque per microstep: f_step = n × s × μ ÷ 60; T_inc = T_h × sin(90° ÷ μ).
Static lag: λ = (2 ÷ π) × asin(T_L ÷ T_h) full steps. V is the supply voltage, L the phase inductance in H, I the rated phase current, s the full steps per revolution, μ the microsteps per full step, T_h the holding torque and T_L the load torque.
NEMA 17 (3.7 kgf·cm, 1.68 A, 3.2 mH, 200 steps) on 24 V at 1/16; load 1 kgf·cm at 1000 rpm: Torque margin 2.478×; corner 669.6 rpm; step rate 53.33 kHz. f_c = 24 ÷ (2 × 0.0032 × 1.68) = 2232 full steps/s, or 669.6 rpm. At 1000 rpm the torque is 3.7 × 669.6 ÷ 1000 = 2.478 kgf·cm, 2.478 times the load.
Same motor and load at 2000 rpm: Torque margin 1.239×, below the 2× safety factor. Above the corner, doubling the speed halves the torque, to 1.239 kgf·cm. The step rate doubles to 106.7 kHz.
Same motor, load 3 kgf·cm at 1000 rpm: Stalls: needs 3 kgf·cm, the motor gives 2.478 kgf·cm. The load is below the 3.7 kgf·cm holding torque, so the motor holds it at rest, but not at this speed. At 825.9 rpm or slower it has enough torque to turn it (margin 1).
Same motor and load on a 12 V supply at 1000 rpm: Corner 334.8 rpm; torque margin 1.239×. Halving the supply voltage halves the corner speed, so at 1000 rpm the torque is half of what 24 V gives.
All About Circuits: Stepper Motor Calculator
Machine Design: Microstepping myths