An electronic device includes a sensor that acquires a pulse wave and a controller that calculates an index based on the acquired pulse wave. The controller estimates the subject's state of glucose metabolism or lipid metabolism using the calculated index.