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.
Related tools
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.