A smart toilet with a function of detecting the body composition is provided. The smart toilet includes a toilet base and a machine body connected to the toilet base. The machine body is provided with a controller and the following modules that are electrically connected to the controller respectively, i.e., the body composition detecting module, the display or voice prompt module, the key input module which is used to send the operating information of the user and physical parameters of the user back to the controller, and the power supply module which is used to supply power. After processing, the controller obtains the impedance value of human body based on an electrical signal acquired by the body composition detecting module. The controller compares the impedance value to physical parameters of the user to conduct a final processing.