the rank of an nxn matrix A is equal to the number of non-zero rows A has when it is put in reduced row-echelon form. since A is invertible, it means its reduced row echelon form is the identity matrix . Thus, the reduced row-echelon form of a 5x5 matrix is which means the rank for such a matrix is 5