An electronic device includes a wearing portion to be worn by a subject and a sensor unit that includes a sensor configured to detect a pulse wave of the subject. The sensor unit includes a displacement portion configured to contact a measured part of the subject and to be displaced in accordance with the pulse wave of the subject when the wearing portion is worn by the subject.