Skip to content
Omnikalc

Shunt resistor calculator: size a current-sense shunt and check the ADC range

Enter the maximum current, the shunt voltage, the amplifier gain and the ADC to get the shunt resistance, the power dissipated, the rating to choose and the current resolution.

Updated on
Your inputs
A

Value out of range

mV

Value out of range

Value out of range

bits

Value out of range

V

Value out of range

Results

Shunt resistance

3.75 mΩ

Power dissipated at maximum current
1.50 W
Recommended power rating (2× margin)
3.00 W
Share of the ADC range used
68.2%
Good use of the ADC range
ADC counts at maximum current
2,793
Current resolution (1 ADC count)
7.16 mA

A shunt resistor turns a current into a small voltage that an amplifier and an ADC can read. The shunt resistor calculator gives the resistance for your maximum current, the power it dissipates, the rating to choose, the share of the ADC range used and the current resolution of one count.

How the calculation works

  • Enter the maximum current that you want to measure, in amperes.
  • Enter the voltage across the shunt at that current. Values of 50 to 100 mV are common, a lower value wastes less power and a higher value gives a larger signal.
  • Enter the gain of the current-sense amplifier, the resolution of the ADC in bits and its reference voltage.
  • The calculator gives the shunt resistance R = V / I, the power dissipated P = I² R and a rating with a 2× margin, the share of the ADC range that the signal uses, the ADC counts at full current and the current resolution of one count.

Example

You want to measure up to 20 A with a shunt that drops 75 mV at full current. The shunt resistance is 75 mV / 20 A = 3.75 mΩ. At 20 A it dissipates 20² × 0.00375 = 1.50 W, so choose a shunt rated 3 W or more. An amplifier with a gain of 30 brings the signal to 75 mV × 30 = 2.25 V, which uses 68.2 % of the range of a 12-bit ADC with a 3.3 V reference, or 2 793 counts. One count is about 7.16 mA.

Why it matters

The calculator helps makers, students and engineers to design a current-sense circuit for a battery monitor, a motor driver, a charger or a bench power supply. It shows the trade-off between the voltage you lose in the shunt and the precision you get, and it warns you when the amplified signal is too large or too small for the ADC.

Good to know

Use a low-inductance, low-temperature-coefficient shunt, and connect the sense wires directly to the pads of the resistor to avoid the voltage drop in the copper. The shunt heats up, so a rise in temperature changes the value, which is why the power margin matters. For high-side sensing, check the common-mode range of the amplifier. Calibrate at two currents to remove the offset and the gain error.

The ADC resolution calculator relates bits, reference and step size, the op-amp gain calculator sizes the amplifier stage, the Ohm’s law calculator links voltage, current and resistance, and the battery life calculator turns a measured current into hours of use.

Frequently asked questions

What is a shunt resistor?

A shunt resistor is a low-value precision resistor placed in the path of a current. The current creates a small voltage across it, according to Ohm's law, and an amplifier or an ADC reads that voltage. Dividing the voltage by the resistance gives the current. Shunts are used in battery monitors, motor drives, power supplies and ammeters.

How do I choose the shunt value?

Start from the maximum current and the voltage you accept to lose. A higher resistance gives a larger signal and a better resolution but wastes more power and drops more voltage in the circuit. A lower resistance is more efficient but the signal is small, so you need more gain and a low-offset amplifier. A drop of 50 to 100 mV at full current is a common compromise.

Why is the power rating important?

The shunt turns I² R into heat. If the power rating is too low, the resistor heats up, its value drifts and it can fail. Choose a rating at least twice the power at maximum current, and remember that the resistor is rated at room temperature on a specific board layout. A four-terminal (Kelvin) shunt also gives a more accurate reading.

What does the current resolution mean?

The resolution is the smallest current change that moves the ADC by one count. It depends on the reference voltage, the number of bits, the gain and the shunt resistance. A 12-bit ADC with a gain of 30 on a 3.75 mΩ shunt resolves about 7 mA. Noise and offset make the real resolution a few counts worse.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.