Skip to main content
engineering

State-Space Calculator

Analyze state-space systems: compute eigenvalues of A, controllability rank, observability rank, and stability from A, B, C, D matrices

Reviewed by Christopher FloiedPublished Updated

This free online state-space calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Supports both metric (SI) and imperial units with built-in unit selection dropdowns on every input field, so you can work in whatever units your problem provides. Designed for engineering students and professionals working through coursework, design projects, or quick reference calculations.

State-Space Calculator

Enter A, B, C, D matrices. Use semicolons or newlines for rows. Example A: "0 1; -2 -3"

System Order
2
Stability
Stable
Controllable
No (rank 1)
Observable
Yes (rank 2)

Eigenvalues of A (System Poles)

λ1 = -1.0000(stable)
λ2 = -2.0000(stable)

State-Space Representation

ẋ = Ax + Bu → A:

     0.000       1.000
    -2.000      -3.000

B:

     0.000
     1.000

y = Cx + Du → C:

     1.000       0.000

D:

     0.000

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the State-Space Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The State-Space Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

State-Space Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the State-Space Calculator when solving homework or exam problems that require quick numerical verification of your hand calculations — instant feedback helps identify arithmetic errors before they propagate.
  • Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
  • Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
  • Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
  • Use it in the field when a quick estimate is needed and a full engineering software package is not available.

About This Calculator

The State-Space Calculator is a precision engineering calculation tool designed for students, engineers, and technical professionals. Analyze state-space systems: compute eigenvalues of A, controllability rank, observability rank, and stability from A, B, C, D matrices All calculations are performed using established engineering formulas from the relevant scientific literature and standards. Inputs support both metric (SI) and imperial unit systems, with unit conversion handled automatically — simply select your preferred unit from the dropdown next to each field. Results are computed instantly in the browser without sending data to a server, ensuring both speed and privacy. This calculator is intended as a supplementary tool for learning and design exploration; always verify results against authoritative references for safety-critical applications.

The Theory Behind It

State-space representation of a linear time-invariant system uses the first-order differential equation form dx/dt = A·x + B·u, y = C·x + D·u, where x is the state vector (n × 1 for an n-th order system), u is the input vector, y is the output vector, and A, B, C, D are constant matrices. This modern representation handles multi-input multi-output (MIMO) systems naturally and is the foundation of modern control theory. The eigenvalues of A are the poles of the system and determine stability (all must have negative real parts). Controllability is the ability to drive the state from any initial condition to any final condition in finite time, checked by the rank of the controllability matrix [B, AB, A²B, ..., A^(n-1)B]. Observability is the ability to determine the initial state from output measurements, checked by the rank of the observability matrix. If both controllability and observability hold, state-space analysis and design (pole placement, LQR optimal control, Kalman filtering) can be applied. State-space systems are solved in closed form using the matrix exponential: x(t) = e^(At)·x(0) + ∫e^(A(t−τ))·B·u(τ)dτ. Numerical simulation uses matrix-based ODE integrators. State-space is the standard formulation in modern control textbooks and is required for problems with multiple inputs and outputs, time-varying systems, and nonlinear systems linearized at operating points.

Real-World Applications

  • Multi-variable system design: design controllers for systems with multiple inputs and outputs (e.g., aircraft flight control, chemical plants with multiple manipulated variables).
  • Optimal control design: LQR (Linear Quadratic Regulator) and MPC (Model Predictive Control) use state-space formulations to compute optimal control laws.
  • Kalman filter design: state estimation from noisy sensor measurements requires state-space models and Kalman filtering for optimal estimates.
  • Modern robotics control: robot manipulator dynamics are inherently multi-variable and best represented in state-space form.
  • Aerospace guidance and control: missile, aircraft, and spacecraft dynamics use state-space for 6-DOF rigid body motion plus linearized aerodynamics.

Frequently Asked Questions

What is state-space representation?

State-space represents a system using the first-order ODEs dx/dt = A·x + B·u and y = C·x + D·u. The state vector x contains enough information to predict future behavior given future inputs. A is the system matrix (dynamics), B is the input matrix (how inputs affect state), C is the output matrix (how state produces outputs), and D is the direct feedthrough matrix (usually zero for physical systems).

Why use state-space over transfer functions?

State-space handles MIMO (multi-input multi-output) systems naturally with matrix representations. It is the basis for modern control design methods (LQR, MPC, Kalman). It captures internal dynamics not visible at the output (important for observability). Transfer functions are simpler for SISO systems and more intuitive for classical design, but state-space is more general and powerful.

What are controllability and observability?

Controllability: the ability to drive the state from any initial value to any final value using the available inputs. Checked by rank(controllability matrix) = n. Observability: the ability to determine the state from output measurements alone. Checked by rank(observability matrix) = n. Systems that are controllable and observable can be designed with modern control methods; non-controllable or non-observable systems have fundamental limitations.

What are eigenvalues of A?

The eigenvalues of the system matrix A are the poles of the transfer function representation. They determine system stability (stable if all have negative real parts) and transient response characteristics. Complex conjugate eigenvalue pairs give oscillatory modes; real eigenvalues give exponential modes. Numerical tools (eig in MATLAB, numpy.linalg.eig in Python) compute eigenvalues reliably.

What's LQR?

Linear Quadratic Regulator — an optimal control method that computes the state feedback gain K that minimizes a quadratic cost function J = ∫(x^T·Q·x + u^T·R·u)dt, where Q and R are weighting matrices. LQR gives a control law u = −K·x that optimally balances state deviation against control effort. It is computed by solving the continuous algebraic Riccati equation and is a foundation of modern control design.

Related Calculators

References & Further Reading