The Extended Kalman Filter (EKF) is a nonlinear state estimation algorithm that linearizes the system's process and observation models around the current mean and covariance to apply the standard Kalman filter equations. It recursively fuses noisy sensor data with a predictive motion model to produce an optimal estimate of a system's hidden state, such as a robot's position and velocity, under the assumption that errors are locally Gaussian. The EKF is a foundational tool in sensor fusion for handling moderate nonlinearities.
Glossary
Extended Kalman Filter (EKF)

What is Extended Kalman Filter (EKF)?
A core algorithm for state estimation in nonlinear dynamic systems, widely used in robotics, aerospace, and autonomous navigation.
The algorithm operates in a two-step predict-update cycle. The prediction step uses the nonlinear process model to project the state and its uncertainty forward. The update step linearizes the observation model to compute the Kalman gain, which optimally weights the new sensor measurement against the prediction. While powerful, the EKF's first-order linearization can introduce significant error for highly nonlinear systems, leading to the development of alternatives like the Unscented Kalman Filter (UKF) and particle filters.
Key Features of the EKF
The Extended Kalman Filter (EKF) is the workhorse algorithm for nonlinear state estimation in robotics and autonomous systems. Its power lies in a specific set of mathematical adaptations to the classic Kalman filter.
Local Linearization via Jacobians
The EKF's defining mechanism is its use of first-order Taylor expansion to linearize nonlinear process and observation models around the current state estimate. This is done by calculating the Jacobian matrices—the matrices of all first-order partial derivatives—of these functions. The Jacobian of the process model (F) linearizes how the state evolves, and the Jacobian of the observation model (H) linearizes how the state maps to measurements. This local approximation allows the EKF to apply the standard Kalman filter equations in a locally valid region.
Recursive Predict-Update Cycle
Like the standard Kalman filter, the EKF operates in a two-step recursive loop:
- Prediction (Time Update): Uses the nonlinear process model
f(x)to project the state estimate and its covariance forward in time. The covariance is propagated using the linearized JacobianF. - Update (Measurement Update): When a new sensor measurement arrives, the EKF computes the Kalman Gain—a weighting factor that balances the predicted state with the new observation. The state and covariance are then corrected. This cycle runs continuously, fusing predictions with asynchronous sensor data.
Explicit Covariance Propagation
The EKF maintains and propagates a covariance matrix (P) that represents the estimated uncertainty of the state. This matrix is crucial because:
- It quantifies confidence in the estimate.
- It dictates the Kalman Gain, determining trust in the model vs. the sensor.
- It grows during prediction (due to process noise) and shrinks during a measurement update (as uncertainty is reduced). The EKF's linearization directly affects how this covariance is transformed, making accurate Jacobians critical for valid uncertainty bounds.
Handling of Nonlinearities
The EKF is designed for mild nonlinearities. Its performance is best when the system's dynamics and sensor models are smooth and the linearization point (the current estimate) is close to the true state. For systems with high nonlinearity (e.g., aggressive vehicle dynamics) or highly non-Gaussian noise, the linearization error can cause the filter to diverge. This limitation is why alternatives like the Unscented Kalman Filter (UKF) or Particle Filter are used for more severe nonlinearities.
Multi-Sensor Fusion Architecture
The EKF provides a natural framework for sensor fusion. Different sensor measurements (e.g., IMU, GPS, lidar) are incorporated sequentially in the update step, each with its own observation model h(x) and Jacobian H. The filter's state vector can be extended to include calibration parameters (like sensor biases), enabling online estimation of these parameters alongside the primary state. This makes the EKF a cornerstone of Visual-Inertial Odometry (VIO) and Lidar-Inertial Odometry systems.
Computational Efficiency
For many real-time applications, the EKF strikes a favorable balance between accuracy and computational cost. Its complexity is O(n^3) where n is the state dimension, primarily due to the matrix inversion in the Kalman Gain calculation. This is often manageable for state vectors in robotics (e.g., pose, velocity, biases). Engineers use techniques like state cloning for sliding window filters or Schur complement tricks to maintain real-time performance in systems like SLAM.
EKF vs. Other Nonlinear Filters
A technical comparison of the Extended Kalman Filter against other prominent nonlinear state estimation algorithms, highlighting core mechanisms, performance characteristics, and ideal use cases for robotics and autonomous systems.
| Feature / Metric | Extended Kalman Filter (EKF) | Unscented Kalman Filter (UKF) | Particle Filter (PF) |
|---|---|---|---|
Core Estimation Method | First-order Taylor series linearization | Deterministic sampling (unscented transform) | Sequential Monte Carlo sampling |
Handles Non-Gaussian Noise | |||
Computational Complexity | O(n³) for covariance updates | O(n³), similar to EKF | O(N * n), scales with particle count N |
Typical Real-Time Performance | < 1 ms for moderate state dimensions | 1-5 ms, slightly higher than EKF | 10-1000 ms, highly variable |
Memory Footprint | Low (stores mean & covariance) | Low (stores sigma points & covariance) | High (stores N particle states & weights) |
Handles Severe Nonlinearities | |||
Theoretical Guarantee | Optimal for linearized Gaussian model | Captures mean & covariance to 3rd order | Converges to true posterior as N → ∞ |
Common Use Case | GPS/IMU fusion, basic robot odometry | High-fidelity inertial navigation, attitude estimation | Visual SLAM, non-Gaussian tracking, robot localization |
Frequently Asked Questions
The Extended Kalman Filter (EKF) is a cornerstone algorithm for state estimation in nonlinear systems, widely used in robotics, autonomous vehicles, and aerospace. These questions address its core mechanisms, applications, and trade-offs.
The Extended Kalman Filter is a nonlinear state estimation algorithm that linearizes a system's process model and observation model around the current state estimate to recursively estimate unknown variables from noisy sensor data. It works in a two-step recursive cycle: a prediction step and an update step. In the prediction step, the filter uses the nonlinear process model to forecast the next state and its associated covariance matrix (uncertainty). Because the model is nonlinear, the EKF linearizes it by computing the Jacobian matrix of the model's partial derivatives at the current state estimate. In the update step, when a new sensor measurement arrives, the filter linearizes the observation model similarly, computes the Kalman gain to weight the prediction against the new measurement, and fuses them to produce an updated, optimal state estimate and a reduced covariance. This linearization allows it to handle mild nonlinearities where the standard Kalman filter fails.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The Extended Kalman Filter (EKF) is a cornerstone of nonlinear state estimation. These related concepts define the broader mathematical and architectural context in which the EKF operates.
Kalman Filter
The foundational linear recursive algorithm for optimal state estimation. It operates on two core equations: a process model to predict the next state and a measurement model to correct the prediction with new sensor data. It assumes:
- A linear system dynamics model.
- Gaussian-distributed process and measurement noise. The Kalman filter's elegance lies in its efficient propagation of the state's mean and covariance matrix, making it the theoretical basis for the EKF.
Unscented Kalman Filter (UKF)
A modern alternative to the EKF for handling nonlinearities. Instead of linearizing models with a Jacobian, the UKF uses the unscented transform. This technique selects a minimal set of sample points (sigma points) that capture the true mean and covariance of the state distribution. These points are propagated through the nonlinear functions, and a new Gaussian is reconstructed from the transformed points. The UKF often provides superior accuracy and stability compared to the EKF, especially for systems with strong nonlinearities or discontinuous models.
Particle Filter
A sequential Monte Carlo method for state estimation in systems that are both nonlinear and non-Gaussian. It represents the posterior probability distribution with a large set of random samples called particles, each with an associated weight. The algorithm cycles through:
- Prediction: Particles are propagated according to the motion model.
- Update: Weights are updated based on sensor likelihood.
- Resampling: Low-weight particles are replaced by copies of high-weight particles to avoid degeneracy. While computationally intensive, it is highly flexible and does not rely on Gaussian assumptions.
Bayesian Filtering
The overarching probabilistic framework that unifies Kalman, EKF, UKF, and particle filters. It formulates state estimation as a recursive application of Bayes' theorem. The goal is to compute the posterior probability distribution of the current state, given all previous measurements. The framework consists of two steps:
- Prediction (Chapman-Kolmogorov): Propagates the state belief forward using the process model.
- Update (Bayesian Update): Incorporates the latest measurement. All specific filters are implementations that make different approximations to make this computationally tractable.
Simultaneous Localization and Mapping (SLAM)
A critical application domain for the EKF, historically implemented via EKF-SLAM. SLAM is the problem where a robot must build a map of an unknown environment while simultaneously tracking its own location within it. In EKF-SLAM, the state vector contains both the robot's pose and the estimated positions of all observed landmarks. The filter's covariance matrix explicitly models the correlations between the robot and every landmark, which grows quadratically with map size. This approach demonstrates the EKF's capability but also highlights its scalability challenges in large environments.
Factor Graph
A graphical model representation that has largely supplanted the EKF for large-scale optimization problems like SLAM. It represents the estimation problem as a bipartite graph of variables (robot poses, landmarks) and factors (sensor measurements, motion constraints). Unlike the EKF, which maintains a single linearization point and a monolithic covariance matrix, factor graphs enable batch optimization (e.g., via Levenberg-Marquardt) over the entire history. This approach is more robust to linearization errors and allows for efficient incremental smoothing rather than pure filtering.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us