NewAI Part GeneratorFree to get started
FREE TOOL

Current sense resistor calculator

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.

Design from
Examples
A
Sensing position

INA180 maximum offset at VCM = 0 V and 12 V.

V
V
bits
Resistor series
%

E24 shunt (at or below the exact value)

27 mΩ

Exact resistance
28 mΩ 2.8 V ÷ (20 × 5 A)
Sense voltage at this current
135 mV
Amplifier output
2.7 V 81.8 % of the ADC range
Resistor power
675 mW 682 mW at +1.0 % resistance
Minimum resistor rating (2× margin)
1.35 W
Current per ADC count
1.492 mA 12-bit, 3.3 V reference
ADC counts at this current
3351
Offset error (max)
5.56 mA ±150 µV ÷ R, 0.11 % of this current
Worst-case error at this current
2.11 % gain + resistor + offset, before ADC error
Lowest readable current
14.8 mA output cannot go below 5 mV, with the worst-case offset

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.

Amplifier output and resistor power against current
0500m11.522.533.50200m400m600m800m11.201234567Current (A)Amplifier output (V)Power (W)Ceiling 3.27 VFull scale 5 A
Output (V)Power (W)

Nearby E24 values at 5 A

ResistorSense voltageAmplifier outputPowerPer ADC count
22 mΩ110 mV2.2 V550 mW1.83 mA
24 mΩ120 mV2.4 V600 mW1.68 mA
27 mΩ135 mV2.7 V675 mW1.49 mA
30 mΩ150 mV3 V750 mW1.34 mA
33 mΩ165 mV3.3 V (clips)825 mW1.22 mA

How do you calculate a current sense resistor value?

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.

Shunt resistor formulas

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.

R = V ÷ I     R = Vout ÷ (G × I)     P = I² × R
R
shunt resistance in Ω
I
full-scale current in A
G
amplifier gain in V/V
Vout
amplifier output to use at full scale, in V

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:

I(count) = (VREF ÷ 2ᴺ) ÷ (G × R)

Offset and the amplifier’s swing to ground set how small a current you can trust:

I(offset) = VOS ÷ R     I(floor) = (Vswing ÷ G + VOS) ÷ R

The INA219 does the amplification and conversion itself, and is scaled through its registers:

Current_LSB ≥ Imax ÷ 2¹⁵     Cal = trunc(0.04096 ÷ (Current_LSB × R))     Power_LSB = 20 × Current_LSB

How to calculate shunt resistor values: worked examples

Example 1: 5 A with an INA180A1 and a 12-bit, 3.3 V ADC

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.

Example 2: INA219 with TI’s 15 A, 2 mΩ example

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.

Example 3: a 20 A shunt with a 50 mV drop

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.

Current sense resistor selection: E24 values for the INA180 on a 3.3 V supply

Rounded down from 2.8 V ÷ (gain × current), so that the output stays inside the range where the gain error is specified.

CurrentGain 20Gain 50Gain 100Gain 200
100 mA1.3 Ω560 mΩ270 mΩ130 mΩ
500 mA270 mΩ110 mΩ56 mΩ27 mΩ
1 A130 mΩ56 mΩ27 mΩ13 mΩ
2 A68 mΩ27 mΩ13 mΩ6.8 mΩ
5 A27 mΩ11 mΩ5.6 mΩ2.7 mΩ
10 A13 mΩ5.6 mΩ2.7 mΩ1.3 mΩ
20 A6.8 mΩ2.7 mΩ1.3 mΩ680 µΩ

Shunt power at common values

P = I² × R. Choose a part rated for at least twice this.

R \ I1 A5 A10 A20 A50 A
1 mΩ1 mW25 mW100 mW400 mW2.5 W
2 mΩ2 mW50 mW200 mW800 mW5 W
5 mΩ5 mW125 mW500 mW2 W12.5 W
10 mΩ10 mW250 mW1 W4 W25 W
25 mΩ25 mW625 mW2.5 W10 W62.5 W
50 mΩ50 mW1.25 W5 W20 W125 W
100 mΩ100 mW2.5 W10 W40 W250 W

What goes wrong in real circuits

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.

Glossary

Shunt
A low-value resistor placed in series with a load so that the voltage across it measures the current.
Sense voltage
The drop across the shunt, I × R.
Offset (VOS)
A small error voltage at the amplifier input. Divided by R, it is a fixed error in amps.
Gain error
The difference between the real and ideal gain, as a percentage of the reading.
Kelvin connection
Separate sense lines taken directly from the resistor pads, so the load current does not flow in them.
Common-mode voltage
The voltage of the two amplifier inputs relative to ground.
Current_LSB
The amps represented by one bit of the INA219 current register.

Related guides

Frequently asked questions

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.

How do I calculate the shunt resistor value for a given current?

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.

How much power does a current sense resistor dissipate?

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.

Should a current sense resistor be large or small?

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.

What gains does the INA180 come in?

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.

How do I set the INA219 calibration register?

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).

Why use a Kelvin connection on a shunt?

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.

What is the difference between high-side and low-side current sensing?

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.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

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.

Get for Mac

Free to start. No card required.