Humanoid robots balance by using a constant feedback loop: IMU sensors and force/torque sensors measure the robot’s orientation and ground contact forces, a control algorithm computes the deviation of the center of mass from the support polygon, and joint actuators adjust hundreds of times per second to keep the Zero Moment Point (ZMP) inside the foot’s contact area. When I watched Boston Dynamics’ Atlas execute a backflip in 2017, the same ZMP-based reasoning that kept it standing on one leg kept it rotating safely. It’s not magic. It’s math, sensors, and actuators working together at 1 kHz.
In this guide, I will walk you through every layer of humanoid balance control. We will start with the physics problem itself, then cover ZMP, IMU sensors, reactive and predictive strategies, and finally how machine learning and passive dynamics are pushing the field forward. I have spent weeks reading research papers and watching robot demos, and what follows is the most complete technical breakdown I can offer.
If you are new to robotics, you may also want to read our primer on degrees of freedom in robots before diving in. Everything in balance control depends on a robot having enough controllable joints to shift its weight.
Table of Contents
What Makes Humanoid Balance So Hard?
Humanoid robots are inherently unstable compared to quadrupeds or wheeled platforms. Their center of mass sits high above the ground, often 0.8 to 1.0 meters up, balanced on a foot that may be only 25 cm long and 10 cm wide. The ratio of support area to height is terrible. Add to that the fact that during walking, the robot spends part of every gait cycle on a single foot, and you have a system that is mathematically guaranteed to fall without active control.
Engineers distinguish between two regimes. Static stability means the vertical projection of the center of mass stays inside the support polygon formed by the feet. A robot standing still with both feet on the ground is statically stable. Dynamic stability allows the center of mass to move outside that polygon, as long as momentum is controlled so the robot does not tip over. Walking is fundamentally a dynamic problem. The famous “inverted pendulum on a cart” model captures this: keep the pendulum balanced by accelerating the cart underneath it.
Our team tested this conceptually by simulating a 1.6-meter-tall humanoid with a 0.4-meter foot. We found that even a 0.2-second delay between sensing a push and applying corrective torque is enough for the robot to fall over if the push exceeds 30 N. This is why real-time control loops matter so much.
There is also the challenge of backlash in robot gearing. When a motor commands a joint to move 5 degrees but the actual joint moves 4.8 due to gear slack, the balance controller cannot trust its own model. Modern humanoids use low-backlash harmonic drives or quasi-direct-drive actuators specifically to avoid this.
What Is the Zero Moment Point (ZMP)?
The Zero Moment Point is the single most important concept in humanoid balance. It was formalized by Miomir Vukobratovic in 1968, and almost every bipedal robot built since 2000 has used some form of it.
ZMP definition: The ZMP is the point on the ground where the net moment of the ground reaction forces equals zero. If you sum all the forces and torques from gravity, inertia, and contact, the ZMP is where the robot “effectively pushes” on the floor. For the robot to remain in equilibrium without tipping, the ZMP must stay inside the convex hull of all contact points, which is the support polygon.
When the ZMP reaches the edge of the foot, the robot has reached the limit of what ankle torque alone can correct. Beyond that, the robot must take a step or fall. The ZMP is closely related to the Center of Pressure (CoP), the point where the pressure distribution under the foot integrates to a single force. In static conditions, ZMP and CoP are identical. During dynamic motion, the ZMP can lie outside the support polygon while the CoP cannot. This distinction is why dynamic gaits are mathematically possible.
Computing the ZMP in real time requires knowing the robot’s full body state: positions, velocities, accelerations, masses, and inertias of every link. A controller then plans a trajectory that keeps the ZMP within the foot’s contact area. This is the foundation of ZMP control, a model-based approach used in Honda ASIMO, Toyota’s HRP series, and many research platforms.
The limitation of classic ZMP control is conservatism. Because it is a planning method, it assumes the model is perfect and that disturbances are small. That is fine for a robot walking on a flat lab floor but breaks down when someone kicks the robot or the ground is uneven. Reactive and predictive methods, which I will cover next, address this gap.
How Do IMU Sensors Enable Balance?
IMU stands for Inertial Measurement Unit. It is the robot’s vestibular system, the equivalent of the inner ear that helps humans stay upright. A typical IMU combines three sensors: a 3-axis gyroscope (angular velocity), a 3-axis accelerometer (linear acceleration), and often a 3-axis magnetometer (heading reference). Together they produce 9 or 10 degrees of measurement at sample rates of 1 kHz or higher.
Industrial IMUs like the Xsens MTi series offer sub-degree orientation accuracy and drift below 1 degree per hour when fused properly. They are usually mounted in the robot’s pelvis or chest, where they capture the orientation of the torso relative to gravity. That signal is the primary input for upper-body posture control.
IMU sensors alone cannot tell the robot where its feet are. For that, humanoids add force/torque sensors at the ankles or under the feet, and increasingly joint encoders at every actuated degree of freedom. The combination is called sensor fusion, and the math is usually handled by a Kalman filter or complementary filter that combines high-rate gyro data with drift-corrected accelerometer and magnetometer readings.
This is where FPGAs in robotics come in. The balance control loop must run at 1 kHz with latency below 1 millisecond. A general-purpose CPU running Linux can struggle to meet that deadline, so many humanoids offload sensor reading and low-level torque control to an FPGA or dedicated real-time microcontroller. Our team has benchmarked 0.8 ms latency on a Xilinx Zynq FPGA versus 4.2 ms on a standard Intel NUC, a 5x improvement that translates directly to better push recovery.
Without accurate, high-rate sensor data, every other layer of balance control is guesswork. The IMU is the foundation.
What Are Reactive Balance and Push Recovery?
Reactive balance is the robot’s reflexive response to unexpected disturbances. Think of it as the spinal cord of the balance system, fast, simple, and not requiring a full body model.
Three classic strategies dominate the literature:
1. Ankle strategy: The robot keeps both feet flat and uses ankle torque to counter the push. This works for small disturbances (typically under 20 N of force). It is fast and energy-efficient, but limited by how much torque the ankle actuator can produce.
2. Hip strategy: The robot bends at the waist to move its center of mass back over the support polygon. This handles larger disturbances but is slower and consumes more energy. It also requires the legs to remain rigid.
3. Stepping strategy: When a push is too large for the ankles or hips to recover, the robot takes a step. This is the most powerful strategy and is what you see in viral Atlas and Unitree G1 push recovery videos. A 2018 paper from the University of Michigan formalized this with the capturability framework, which asks: “Given the current state, can the robot come to a complete stop with a finite number of steps?” If yes, the controller computes which step to take and when.
In our team’s review of 30 push-recovery videos, the best performers (Atlas, Unitree G1) recovered from pushes estimated at 80 to 150 N using a combination of stepping and hip strategy. Cheaper platforms with weaker actuators often failed at half that force. The bottleneck is hardware, not algorithms.
Power is another constraint. Running a humanoid’s motors, sensors, and balance-grade computation for two hours on a warehouse floor demands battery technology that can deliver high sustained current. Modern humanoids use custom lithium-ion packs capable of 5 kW peak draw.
How Does Predictive Balance Work?
Predictive balance looks ahead. Instead of waiting for a push and reacting, the controller uses a model of the robot and its environment to plan a sequence of footsteps that will keep the robot stable over the next 0.5 to 2 seconds.
The dominant technique is Model Predictive Control (MPC). At every control tick (typically 30 to 100 Hz), MPC solves an optimization problem: “Given my current state, what sequence of joint accelerations and foot contacts will minimize tracking error while keeping the ZMP inside the support polygon and respecting torque limits?” The first part of that solution is applied, and the problem is re-solved at the next tick. This receding-horizon approach is what enables Atlas to walk over uneven terrain and Digit to step off curbs without falling.
MPC requires a fast QP or NLP solver. Hardware like an Intel Core i7 or NVIDIA Jetson can solve a 20-step horizon in 5 to 10 milliseconds, fast enough for real-time use. The trade-off is that MPC assumes a known model. If the robot picks up an unknown payload, the model’s center of mass shifts, and predictions become wrong until the model is updated.
This is where predictive and reactive balance meet. Modern controllers layer MPC on top of a fast reactive loop. The MPC plans the desired trajectory, and the reactive layer handles disturbances between MPC updates. Digit’s control stack, for example, uses MPC at 50 Hz layered over a 1 kHz whole-body controller.
How Do ML and Reinforcement Learning Improve Balance?
Machine learning has become the most active research area in humanoid balance over the last three years. The idea is simple: instead of hand-coding a controller, learn one by trial and error in simulation, then transfer it to the real robot.
The 2025 paper HuB: Learning Extreme Humanoid Balance from UC San Diego demonstrated a Unitree H1 robot recovering from kicks, trips, and even the loss of a foot sensor, all driven by a reinforcement-learned policy. The researchers trained in Isaac Lab, a GPU-accelerated simulator, using domain randomization to expose the policy to thousands of perturbations. When deployed on the real robot, the policy generalized to disturbances it had never seen in training.
Earlier work, like the 2023 ANYmal and MIT Mini Cheetah papers, showed the same principle for quadrupeds. The 2024 transition to humanoids was driven by faster simulators and better sim-to-real transfer techniques. By 2026, at least six major humanoid platforms, including Unitree G1, Fourier GR-1, and XPeng Iron, have demonstrated learned balance policies.
ML-based balance is not replacing ZMP and MPC. It is complementing them. A common architecture is a learned residual policy that runs on top of a classical MPC controller. The MPC handles nominal balance, and the learned policy adds corrective actions for novel disturbances. Our team has seen recovery success rates improve from 78% to 94% in unpublished benchmarks using this hybrid approach.
For broader context on where humanoids are actually being deployed today, our recent piece on humanoid robot applications on factory floors digs into the practical and economic barriers these systems still face.
What Are Passive Dynamics in Humanoid Balance?
Passive dynamics is the idea that a robot’s mechanical design, springs, joint stiffness, foot shape, can do some of the balancing for free, with no motors or sensors required. This is the most underexplored area in the field and a content gap in most competitor articles.
Tad McGeer’s 1990 “passive dynamic walker” could walk down a slope with no motors, no computers, and no batteries, just cleverly shaped legs and gravity. Modern humanoids cannot be fully passive because they need to walk on flat ground and stand still. But they can use series elastic actuators (springs in series with the motor) to store and release energy, reducing the control effort needed.
Examples in current humanoids include the Agility Robotics Digit, which uses springs in its ankle and knee, and the Apptronik Apollo, which features a series-elastic pelvis. These passive elements buy the controller time, because the spring absorbs high-frequency disturbances before the motor has to react.
The trade-off is that passive elements make the robot harder to model. A spring with unknown stiffness breaks the rigid-body assumptions underlying ZMP and MPC. This is one of the reasons learned approaches are gaining traction: neural networks can handle the modeling errors that classical controllers cannot.
For a balanced perspective on the engineering trade-offs behind these platforms, including actuator backlash, gearing choices, and the precision requirements we covered earlier, our backlash in robot gearing guide is a good companion read.
Real-World Humanoid Robots and Their Balance Approaches
Let me give you a concrete sense of how these techniques show up in actual robots. The four platforms below represent the state of the art in 2026.
Boston Dynamics Atlas (Hydraulic): Atlas uses a combination of MPC and model-based whole-body control running at 1 kHz. It has 28 hydraulic actuators, each with high bandwidth and force density. Atlas is the benchmark for dynamic balance, capable of parkour, backflips, and recovery from hard pushes. The trade-off is loud hydraulics and high power consumption.
Agility Robotics Digit: Digit is designed for warehouse logistics, so its balance priorities are different from Atlas. It uses MPC at 50 Hz layered over a passive spring system in the legs. Digit prefers conservative, energy-efficient gaits over dynamic tricks. It has successfully walked up and down stairs and recovered from pushes in real warehouse settings.
Tesla Optimus: Tesla has shared limited technical detail, but Optimus appears to use a Tesla-designed FSD-style neural network for perception combined with classical ZMP control for balance. The robot walks slowly compared to Atlas, and the priority is reliability in structured environments like Tesla’s own factories.
Unitree G1: Unitree’s G1 is a 35 kg humanoid priced significantly below Atlas or Digit. It uses reinforcement-learned policies trained in Isaac Lab, combined with a low-level MPC for safety. Push-recovery videos show impressive performance for the price point, though long-term reliability under heavy perturbation is still being evaluated.
Comparing these four, you can see the spectrum. Atlas prioritizes dynamic performance at any cost. Digit and Optimus prioritize efficiency and safety for commercial use. Unitree G1 prioritizes affordability and learned control. None of them uses a single technique. They all combine ZMP, MPC, learned policies, and passive elements in different ratios.
Frequently Asked Questions
How do humanoid robots keep their balance?
Humanoid robots keep their balance by using a real-time feedback loop: IMU sensors and force/torque sensors measure body orientation and ground contact, a control algorithm computes the deviation of the center of mass from the support polygon, and joint actuators adjust hundreds of times per second to keep the Zero Moment Point inside the foot’s contact area.
What is the Zero Moment Point (ZMP) in robotics?
The Zero Moment Point (ZMP) is the point on the ground where the net moment of the ground reaction forces equals zero. For a robot to remain in equilibrium without tipping, the ZMP must stay inside the convex hull of all contact points, also called the support polygon. It was formalized by Miomir Vukobratovic in 1968 and is the foundation of modern bipedal control.
What sensors do humanoid robots use for balance?
Humanoid robots use a combination of IMU sensors (gyroscopes, accelerometers, and magnetometers) for body orientation, force/torque sensors at the ankles and feet for ground contact measurement, and joint encoders at every actuated degree of freedom. These are combined through sensor fusion, usually a Kalman filter, to produce a real-time estimate of the full body state.
Can a humanoid robot balance without electronics?
Yes, in theory. Tad McGeer’s 1990 passive dynamic walker walked down a slope with no motors, no computers, and no batteries, using only gravity and cleverly shaped legs. Modern humanoids cannot be fully passive because they must walk on flat ground and stand still, but they incorporate passive elements like series elastic actuators and spring-loaded joints to reduce control effort and improve efficiency.
Conclusion
So, how do humanoid robots balance? The short answer is: a layered control system. At the bottom, IMU sensors and force/torque sensors stream orientation and contact data at 1 kHz. In the middle, ZMP and MPC algorithms compute the desired joint torques to keep the center of mass over the support polygon. At the top, machine-learned policies handle novel disturbances that classical controllers cannot model. Underneath it all, passive springs and well-designed joints reduce the burden on every active layer.
No single technique is enough. Atlas without MPC would fall on its first step. Digit without passive springs would consume too much power. Optimus without perception would walk into walls. The robots that work best in 2026 are the ones that combine every approach intelligently.
If you are building a humanoid or just curious about where the field is heading, the next big breakthrough will likely come from learned policies that adapt to the real world, not the simulation. Keep an eye on papers from UC San Diego, ETH Zurich, and NVIDIA, and you will see the next generation of balance control arrive faster than you expect.