The invention discloses an equation solver based on memristor arrays, and an operation method thereof. The equation solver comprises a first memristor array, a second memristor array, a comparison module and a conductivity modulation module, a three-layer neural network is established based on the memristor arrays, an inverse matrix or a generalized inverse matrix of a coefficient matrix of the system of linear equations is solved based on a training algorithm of a neural network, so the purpose of solving the equations is achieved. The equation solver can be used for solving various tasks such as a non-singular linear equation set, a compatible linear equation set, an incompatible linear equation set, a partial differential equation and a matrix feature vector, and is high in reconfigurability. Besides, the memristors have the advantages of high speed, low power consumption, easiness in integration, compatibility with a CMOS process and the like, so that vector matrix multiplication can be realized by conductively storing a data matrix for operation. The equation solver is simple in circuit structure, small in circuit area, low in circuit power consumption and simple in operationstep.