The invention discloses a fluid viscosity detection device and detection method based on a nanowire vertical array. The detection device includes a human-computer interaction device, a detection processing circuit, a detection probe including an excitation coil, and a microchip made of a magnetic nanowire array. , the detection probe is connected with the detection processing circuit and the human-computer interaction device in turn, the microchip is used to put into the fluid to be tested, and the detection probe is used to provide an alternating magnetic field for the microchip directly above the fluid to be tested and detect the microchip’s real-time vibration signal. The invention is compact in structure, small in size, easy to move, only needs a small amount of samples to detect viscosity, has high stability and reliability, and adopts magnetic nanowire array, which greatly improves sensitivity and response speed, and does not need additional consideration of fluid conduction It can be widely used in the field of fluid viscosity measurement.