In linear algebra, the nullity of a matrixM is the number of columns of M minus the rank of M. If the m by n matrix M is regarded as a linear transformationRn → Rm, then the nullity is equal to the dimension of the kernel of this linear transformation.