FABRIK

Forward And Backward Reaching Inverse Kinematics

A fast, intuitive and versatile inverse kinematics algorithm for computer animation, game development and robotics. Introduced in 2011 and extended in 2016 to support complex model constraints, FABRIK is featured in game engines, animation tools, open-source implementations and university curricula worldwide.

FABRIK: a fast, iterative solver for the inverse kinematics problem

Published in Graphical Models, 73(5): 243–260, 2011.
Andreas Aristidou1, Joan Lasenby1
1 University of Cambridge
FABRIK inverse kinematics chain

Overview

A novel heuristic method, called Forward And Backward Reaching Inverse Kinematics (FABRIK), is described that avoids the use of rotational angles or matrices, and instead finds each joint position via locating a point on a line. Thus, it converges in few iterations, has low computational cost and produces visually realistic poses. Constraints can easily be incorporated within FABRIK and multiple chains with multiple end effectors are also supported.

Abstract

Inverse Kinematics is defined as the problem of determining a set of appropriate joint configurations for which the end effectors move to desired positions as smoothly, rapidly, and as accurately as possible. However, many of the currently available methods suffer from high computational cost and production of unrealistic poses. In this work, a novel heuristic method, called Forward And Backward Reaching Inverse Kinematics (FABRIK), is described and compared with some of the most popular existing methods regarding reliability, computational cost and conversion criteria. FABRIK avoids the use of rotational angles or matrices, and instead finds each joint position via locating a point on a line. Thus, it converges in fewer iterations, has low computational cost and produces visually realistic poses. Constraints can easily be incorporated within FABRIK and multiple chains with multiple end effectors are also easily supported.

Video

BibTeX (FABRIK)

@article{Aristidou:2011:FABRIK,
 author    	= {Aristidou, Andreas and Lasenby, Joan },
 title     	= {{FABRIK}: {A} fast, iterative solver for the Inverse Kinematics problem},
 journal 	= {Graph. Models},
 issue_date	= {September, 2011},
 volume 	= {73},
 number 	= {5},
 month 		= sep,
 year 		= {2011},
 issn 		= {1524-0703},
 pages 		= {243--260},
 numpages 	= {18},
 url 		= {http://dx.doi.org/10.1016/j.gmod.2011.05.003},
 doi 		= {10.1016/j.gmod.2011.05.003},
 acmid 		= {2027560},
 publisher	= {Academic Press Professional, Inc.},
 address 	= {San Diego, CA, USA},
}

Extending FABRIK with Model Constraints

Published in Computer Animation & Virtual Worlds, 27(1): 35–57, 2016.
Andreas Aristidou1, Yiorgos Chrysanthou1, Joan Lasenby2
1 University of Cyprus
·
2 University of Cambridge
Extending FABRIK with model constraints

Overview

This paper addresses the problem of manipulating articulated figures in an interactive and intuitive fashion for the design and control of their posture using the FABRIK algorithm; the algorithm has been extended to support a variation of different joints and has been evaluated on a humanoid model.

Abstract

We adjust FABRIK so as to be used in problems with leaf joints, closed-loop chains, to control a fixed inter-joint distance in a kinetic chain with unsteady data, as well as providing optimisation solutions when the target is unreachable. In addition, we present various techniques for constraining anthropometric and robotic joint models using FABRIK, and we provide clarifications and solutions to many questions raised since the first publication of FABRIK. Finally, a human-like model that has been structured hierarchically and sequentially using FABRIK is presented, utilising most of the joint models suggested in this paper; it can efficiently trace targets in real-time, without oscillations or discontinuities, verifying the effectiveness of FABRIK.

Video

BibTeX (Extending FABRIK with Model Constraints)

@article{Aristidou:2016:ExtFABRIK,
 author 	= {Aristidou, Andreas and Chrysanthou, Yiorgos and Lasenby, Joan},
 title		= {Extending {FABRIK} with Model Constraints},
 journal 	= {Comput. Animat. Virtual Worlds},
 issue_date = {January 2016},
 volume 	= {27},
 number 	= {1},
 month 		= jan,
 year 		= {2016},
 issn 		= {1546-4261},
 pages 		= {35--57},
 numpages 	= {23},
 url 		= {https://doi.org/10.1002/cav.1630},
 doi 		= {10.1002/cav.1630},
 acmid 		= {3074916},
 publisher 	= {John Wiley and Sons Ltd.},
 address 	= {Chichester, UK},
}

Interactive Inverse Kinematics Comparison

Explore FABRIK, Cyclic Coordinate Descent (CCD), and a Jacobian-based damped least-squares (DLS) solver on the same planar articulated chain. Drag the target in any panel, change the number of links or joint limits, and compare continuous target tracking (default) or benchmark convergence from an identical initial pose.

Drag a target or use arrow keys on a panel. All solvers share the target.

FABRIK
CCD
Jacobian (DLS)
Convergence — end-effector error (log scale)
FABRIKCCDJacobian DLS

The dashed circle marks the maximum unconstrained reach; the red cross is the target. Each link has equal length and the total reach is 100 units. Joint limits are relative to the preceding link (the root is free). FABRIK uses position-only forward/backward reaching sweeps, with angular projection only when limits are enabled; CCD uses a distal-to-proximal sweep; DLS uses a simultaneous angular update with damping and bounded steps. Iteration counts are not equivalent computational costs. This simplified 2D educational implementation is not a reproduction of the full constrained 3D solver in the 2016 paper. Results depend on pose, target, constraints and solver parameters; they are not a formal performance benchmark. Continuous tracking retains each solver’s last computed configuration when the target changes; benchmark mode resets all solvers to the same selected initial pose. Reset pose and changes to solver settings restart the chains. The straight axial scenario explicitly resets to a straight pose. Iterations stop at the target tolerance, the geometric lower bound, the iteration budget, or when successive end-effector positions differ by no more than the stagnation tolerance. Solver time is the mean of 1,000 repeated complete solves from each solver’s actual starting configuration for the current target, measured automatically after termination. Only benchmark mode guarantees identical starting poses across solvers. Timing includes convergence checks but excludes initialization and rendering. Warm-up runs are excluded. Measurements are browser-dependent; three decimal places do not imply nanosecond accuracy. Singular poses may stagnate; no solver receives a hidden perturbation. DLS parameters affect only DLS. Outside the maximum reach, all solvers stop when within tolerance of the geometric lower bound; FABRIK retains its direct alignment rule.

Industrial and academic adoption

FABRIK in Game Engines and Animation Tools

Since its introduction in 2011, FABRIK has been adopted in game development, character animation, and visual effects. Official implementations are available in Unreal Engine (Epic Games), which also provides a multi-effector FABRIK solver, Unity 3D, Unity 2D, and SideFX Houdini, where FABRIK is available for interactive full-body posing and motion retargeting. FABRIK has also been adopted by Roblox, whose developers confirmed its use as part of its native real-time inverse kinematics framework.

The algorithm is also available in open-source game engines, including Godot Engine (3D) (Godot 4.6 release), Godot Engine (2D), and Urho3D, as well as in commercial animation middleware, such as RootMotion's Final IK. Several third-party and community implementations are also available, including EasyIK for Unity, Panda3D, Bevy Engine, and Caliko, an open-source Java library for constrained inverse kinematics. Community implementations also demonstrate FABRIK in Blender Geometry Nodes; this should be distinguished from Blender's native armature IK solver.

FABRIK is also featured in the Khronos Group's official Vulkan procedural animation tutorial. Numerous tutorials, videos, and source code implementations are available online, demonstrating the applicability of FABRIK to a wide range of inverse kinematics problems, including character animation, procedural animation, skeletal rigging, and motion retargeting. An interesting comparison of FABRIK against CCD and the Jacobian Transpose method in the context of game programming is presented here, where the algorithms are evaluated on extremely large kinematic chains.

FABRIK in Higher Education

Beyond its widespread industrial adoption, FABRIK has been incorporated into undergraduate and postgraduate curricula worldwide, particularly in computer graphics, computer animation, game development, and robotics. The algorithm is featured in lectures, course materials, laboratory exercises, and programming assignments at numerous academic institutions, including Stanford University, Carnegie Mellon University, University of Texas at Austin, University of Maryland, École Polytechnique, University of Barcelona, Simon Fraser University, Indian Institute of Technology Delhi, POLITEHNICA Bucharest, Ursinus College, and EPITA.

Student projects and dissertations at other institutions, including the Massachusetts Institute of Technology (MIT), Trinity College Dublin, Maastricht University, California Polytechnic State University, Hamburg University of Applied Sciences, Bournemouth University, and Tunku Abdul Rahman University College, further illustrate its educational reach.

Developer and learning resources

Open-Source Libraries and Implementations

FABRIK has been implemented in several programming languages. The following public repositories provide practical starting points for research, teaching, and development:

These independent implementations differ in their support for joint constraints, multiple end effectors, and numerical tolerances.

FABRIK in AI4AnimationPy (Meta Research)

AI4AnimationPy, developed by Paul Starke and Sebastian Starke, is a Python framework for neural character animation that brings together motion capture processing, network training, inference and visualization using NumPy and PyTorch. It includes a real-time FABRIK inverse kinematics solver and an interactive demonstration with a draggable target, illustrating how conventional geometric IK can complement learning-based animation pipelines.

GitHub repository · Inverse kinematics API · IK demonstration

Final IK: Inverse Kinematics for Unity3D

RootMotion's Final IK, developed by Pärtel Lang, is a commercial Unity middleware package that includes constrained FABRIK and multi-effector IK for branching skeletal chains. See the official product page, technical documentation, and Unity Asset Store listing.

FABRIK in FABRIC Engine

An independent implementation of FABRIK for full-body inverse kinematics was developed by yamahigashi for Fabric Engine 2 using its Canvas visual programming environment. This historical example illustrates the application of FABRIK to articulated character rigs. The implementation remains available in the public source repository.

FABRIK in FABRIC engine example 1 FABRIK in FABRIC engine example 2

Making Kine More Flexible

FABRIK in Kine application CCD in Kine application

FABRIK was implemented in the Kine application [1], an early interactive demonstration of the algorithm. Kine is a real-time 2D application featuring a six-joint kinematic chain visualized as a snake. Click or drag on the screen to set a target and observe the solver in action.

Kine has been adapted from the work of Jeff Lander. More information about Kine can be found at Jeff Lander's website. We would like to express our thanks to Jeff for giving us permission to use his code and application.

You can download and interact with the Kine IK solver here (.rar file). Use the "OPTION" tab to switch between FABRIK and CCD.

    [1] Jeff Lander, Making Kine more flexible, Game Developer, Volume 5, Issue 3, pages 15–22, 1998

Online Tutorials and Interactive Demonstrations

Independent tutorials and demonstrations illustrate FABRIK in character animation, procedural locomotion, skeletal rigging, and robotics.

Interactive Demonstrations

Tutorials and Practical Implementations

Selected Video Demonstrations

FABRIK Implementation Tutorial. Additional implementation guidance. Watch on YouTube.

FABRIK in Blender Geometry Nodes (2025). Procedural walking creatures using Geometry Nodes. Watch on YouTube.

FABRIK Inverse Kinematics Explained (2026). Visual explanation and chain stress test. Watch on YouTube.

FABRIK: A Simple Algorithm for Inverse Kinematics (2024). Visual introduction to the algorithm. Watch on YouTube.

↑ Top