What is a current sense resistor?
A current sense resistor, or shunt resistor, is a low-value resistor placed in series with a load so that the voltage across it, I × R, measures the current. An amplifier scales that drop and an ADC counts it.
Enter your full-scale current and this current sense resistor calculator sizes the shunt for a current-sense amplifier and ADC. With no amplifier chosen yet, use it as a plain shunt resistor calculator from a target sense voltage. It also shows the power the shunt dissipates, the current per ADC count, the offset error and the INA219 calibration value.
INA180 maximum offset at VCM = 0 V and 12 V.
E24 shunt (at or below the exact value)
27 mΩ
Route the sense lines as a Kelvin (4-wire) connection, directly from the resistor pads to IN+ and IN−, so that the high-current path does not add to the measured drop.
Nearby E24 values at 5 A
| Resistor | Sense voltage | Amplifier output | Power | Per ADC count |
|---|---|---|---|---|
| 22 mΩ | 110 mV | 2.2 V | 550 mW | 1.83 mA |
| 24 mΩ | 120 mV | 2.4 V | 600 mW | 1.68 mA |
| 27 mΩ | 135 mV | 2.7 V | 675 mW | 1.49 mA |
| 30 mΩ | 150 mV | 3 V | 750 mW | 1.34 mA |
| 33 mΩ | 165 mV | 3.3 V (clips) | 825 mW | 1.22 mA |
Divide the voltage you can use by the full-scale current: R = V ÷ I, and with an amplifier R = Vout ÷ (gain × I). For 5 A through a gain of 20 V/V on a 3.3 V supply, aim for 2.8 V and get 28 mΩ, which rounds down to 27 mΩ. It dissipates I²R = 675 mW.
The shunt turns current into a voltage, an amplifier scales it, and an ADC counts it. Choose R so that the largest current uses most of the available range without clipping.
The calculator aims for the lower of the ADC reference and VS − 0.5 V, because the INA180 gain error is only tested for outputs from 0.5 V to VS − 0.5 V. An ADC count then corresponds to:
Offset and the amplifier’s swing to ground set how small a current you can trust:
The INA219 does the amplification and conversion itself, and is scaled through its registers:
Target output = min(3.3 V, 3.3 V − 0.5 V) = 2.8 V. R = 2.8 V ÷ (20 × 5 A) = 28 mΩ, rounded down to 27 mΩ in E24. At full scale the output is 2.7 V, the resistor dissipates 675 mW, and one ADC count is 1.49 mA. The ±150 µV low-side offset is worth ±5.56 mA. The output cannot go below 5 mV, so with the worst-case offset, currents under about 14.8 mA do not read.
The smallest Current_LSB is 15 A ÷ 32768 = 457.76 µA per bit (the data sheet prints 457.78 µA), which TI rounds up to 1 mA per bit. Cal = trunc(0.04096 ÷ (1 mA × 2 mΩ)) = 20480 (0x5000). At 10 A the shunt reads 20 mV, or 2000 counts, and the current register reads 2000 × 20480 ÷ 4096 = 10000, which is 10 A at 1 mA per bit.
R = 50 mV ÷ 20 A = 2.5 mΩ, dissipating 1 W. The nearest E24 value at or below that is 2.4 mΩ, with a 48 mV drop and 960 mW. At this size, the layout decides the accuracy, so use a Kelvin connection.
Rounded down from 2.8 V ÷ (gain × current), so that the output stays inside the range where the gain error is specified.
| Current | Gain 20 | Gain 50 | Gain 100 | Gain 200 |
|---|---|---|---|---|
| 100 mA | 1.3 Ω | 560 mΩ | 270 mΩ | 130 mΩ |
| 500 mA | 270 mΩ | 110 mΩ | 56 mΩ | 27 mΩ |
| 1 A | 130 mΩ | 56 mΩ | 27 mΩ | 13 mΩ |
| 2 A | 68 mΩ | 27 mΩ | 13 mΩ | 6.8 mΩ |
| 5 A | 27 mΩ | 11 mΩ | 5.6 mΩ | 2.7 mΩ |
| 10 A | 13 mΩ | 5.6 mΩ | 2.7 mΩ | 1.3 mΩ |
| 20 A | 6.8 mΩ | 2.7 mΩ | 1.3 mΩ | 680 µΩ |
P = I² × R. Choose a part rated for at least twice this.
| R \ I | 1 A | 5 A | 10 A | 20 A | 50 A |
|---|---|---|---|---|---|
| 1 mΩ | 1 mW | 25 mW | 100 mW | 400 mW | 2.5 W |
| 2 mΩ | 2 mW | 50 mW | 200 mW | 800 mW | 5 W |
| 5 mΩ | 5 mW | 125 mW | 500 mW | 2 W | 12.5 W |
| 10 mΩ | 10 mW | 250 mW | 1 W | 4 W | 25 W |
| 25 mΩ | 25 mW | 625 mW | 2.5 W | 10 W | 62.5 W |
| 50 mΩ | 50 mW | 1.25 W | 5 W | 20 W | 125 W |
| 100 mΩ | 100 mW | 2.5 W | 10 W | 40 W | 250 W |
Layout comes first: a milliohm shunt is comparable to the board copper (1 oz copper is about 0.5 mΩ per square), so the sense traces must leave the resistor pads separately from the power path. Temperature comes next: the resistance changes as the part heats, so check the temperature coefficient in the resistor’s data sheet, and allow for it as well as tolerance. Offset limits the small end of the range, so a design that must read both 10 mA and 10 A usually needs two ranges. Finally, shunts below about 100 mΩ are often stocked in fewer values than the E24 series suggests, so check what is available and rescale the rest of the chain to suit.
A current sense resistor, or shunt resistor, is a low-value resistor placed in series with a load so that the voltage across it, I × R, measures the current. An amplifier scales that drop and an ADC counts it.
Divide the voltage you can use at full current by that current. With an amplifier, that is the output limit divided by the gain and the current: 2.8 V ÷ (20 × 5 A) = 28 mΩ. Then round down to a standard value so that the output does not clip.
P = I² × R. 27 mΩ at 5 A dissipates 675 mW, and 2.5 mΩ at 20 A dissipates 1 W. Pick a resistor rated for at least twice the calculated power, since the resistance and accuracy drift as it heats.
Shunt resistor sizing is a trade-off. A larger resistor gives a bigger signal, so offset and noise matter less, but it wastes more power and drops more voltage from the rail. A smaller one runs cool, but small currents get lost in the amplifier offset.
The INA180A1, A2, A3 and A4 have fixed gains of 20, 50, 100 and 200 V/V. The maximum offset is ±150 µV at a common-mode voltage of 0 V and ±500 µV at 12 V, so the same part is more accurate on the low side.
Compute the smallest Current_LSB as the maximum current ÷ 32768, round it up to a convenient value, and then Cal = trunc(0.04096 ÷ (Current_LSB × RSHUNT)). TI’s example of 15 A and 2 mΩ uses 1 mA per bit and gives 20480 (0x5000).
The sense lines should measure only the drop across the resistor element. If they tap into the same copper as the load current, the trace and solder resistance add directly to the reading, and at milliohm values that can be a large error. TI asks for a Kelvin or 4-wire connection on the INA219 for this reason.
A low-side shunt sits between the load and ground, so the amplifier input is near 0 V and the circuit is simple, but the load’s ground rises slightly and a short to ground goes undetected. A high-side shunt sits in the supply path, which needs an amplifier rated for that common-mode voltage (the INA180 accepts −0.2 V to 26 V), and it also sees a load shorted to ground.
See all free electronics tools →
ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.
Free to start. No card required.