Rouché–Capelli theorem
The Rouché–Capelli theorem states that a linear system is consistent exactly when its coefficient and augmented matrices have equal rank. When consistent, its solution set has dimension equal to the number of unknowns minus that rank.