Component guide · Beginner · 3 min read
MG996R servo

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The MG996R is a standard-size metal gear servo with about 9.4 kg-cm of torque at 4.8 V and 11 kg-cm at 6 V. It uses the same three wires and 50 Hz pulses as an SG90, but can draw over 2 A when stalled, so it always needs its own 5 to 6 V supply, never the Arduino 5 V pin.
Key specs at a glance
- Torque
- About 9.4 kg-cm at 4.8 V, 11 kg-cm at 6 V
- Speed
- About 0.17 s/60° at 4.8 V, 0.14 s/60° at 6 V
- Voltage
- 4.8 to 7.2 V (6 V typical)
- Stall current
- About 2.5 A
- Weight and size
- 55 g, 40.7 x 19.7 x 42.9 mm
- Gears
- Metal, with ball bearing
What the MG996R servo is
The MG996R is the usual choice when an SG90 is too weak: robot arm shoulders, RC car steering, camera sliders and animatronics. It is a positional servo, so it holds an angle set by a pulse between roughly 0.5 and 2.5 ms.
Its metal gears handle shock loads, but its current draw is the thing to plan for. A robot arm with four MG996R servos can pull close to 10 A when all of them stall.
MG996R servo pinout
The pins on the MG996R servo and what each one does.
| Pin | Function |
|---|---|
| Brown wire | GND |
| Red wire | + supply (4.8 to 7.2 V) |
| Orange wire | Signal (PWM) |
- Brown wire
- GND
- Red wire
- + supply (4.8 to 7.2 V)
- Orange wire
- Signal (PWM)
Wiring the MG996R servo
Use a 5 or 6 V supply rated at least 2.5 A per servo (a 5 V 10 A SMPS for four servos). Connect the supply's negative to the controller GND so the signal has a reference.
| MG996R servo pin | Arduino Uno | ESP32 |
|---|---|---|
| Brown (GND) | GND and supply − | GND and supply − |
| Red (+) | External 5-6 V supply + | External 5-6 V supply + |
| Orange (signal) | D9 | GPIO 18 |
- Brown (GND)
- Arduino Uno:
- GND and supply −
- ESP32:
- GND and supply −
- Red (+)
- Arduino Uno:
- External 5-6 V supply +
- ESP32:
- External 5-6 V supply +
- Orange (signal)
- Arduino Uno:
- D9
- ESP32:
- GPIO 18
Example code
Moving a degree at a time keeps the current peaks low and is gentler on the gears than jumping straight to a new angle.
#include <Servo.h> // ESP32: ESP32Servo
Servo arm;
int pos = 90;
void moveTo(int target) { // move one degree at a time
while (pos != target) {
pos += (target > pos) ? 1 : -1;
arm.write(pos);
delay(15);
}
}
void setup() {
arm.attach(9, 500, 2500);
arm.write(pos);
}
void loop() {
moveTo(30); delay(1000);
moveTo(150); delay(1000);
}Setup and tuning
6 V gives the most torque. A UBEC or buck converter from a battery works well.
add 1000 µF across the servo supply near the servos.
use the robot arm torque calculator and keep at least 30 percent margin.
an MG996R holding a heavy load for long periods gets hot; counterbalance arms with springs where possible.
What you need
Shop this list4 of 5 found in our store · ₹1,856
TowerPro MG996R metal gear servo (180°): the servo this guide coversTowerPro MG996R Metal Gear Servo (180°)₹329
Metal servo horn 25T (for MG995 / MG996R): a strong horn for arms and linkagesMetal Servo Horn 25T (for MG995 / MG996R)₹71
Enclosed SMPS power supply: 12 V or 24 V supply for bigger loadsEnclosed SMPS Power Supply₹257
PCA9685 16-channel PWM / servo driver: to drive several servosPCA9685 16-Channel PWM / Servo Driver₹1,199- Uno R3 development board: the controller used in the wiring tableFind this part
Alternatives and when to choose them
- SG90 / MG90S: small loads, light builds.
- Servo motors guide: 20 kg and 35 kg servos for bigger arms.
- Serial bus servos: position feedback and higher torque for walking robots.
Try it: Robot arm torque calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering it from the Arduino 5 V pin.
- Using a USB phone charger that cannot supply the stall current.
- Fitting the horn before centring the servo at 90 degrees.
- Long thin supply wires that drop voltage under load.
Frequently asked questions
What is the difference between MG995 and MG996R?
The MG996R is the updated version with better electronics and a little more torque. Pinout and size are the same.
Can I power MG996R from Arduino?
No. It can draw over 2 A, far more than the Arduino 5 V pin supplies. Use a separate 5 to 6 V supply with a shared ground.
Does it rotate 360 degrees?
No, about 180 degrees. Continuous rotation versions are sold separately.
Why does it shake or twitch?
Usually voltage drop. Use a stronger supply, thicker wires and a capacitor near the servo.
Can ESP32 control it?
Yes, with the ESP32Servo library; the 3.3 V signal is accepted by the servo.
How much can it lift?
About 10 kg at 1 cm, so about 1 kg at 10 cm, before any safety margin.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

