An electronic device for estimating bio-information is provided. According to one embodiment, the electronic device may include a pulse wave sensor configured to measure a pulse wave signal from an object; a magnetic field detector configured to detect a change in a magnetic field generated by a magnetic field source according to a change in a force exerted by the object to the pulse wave sensor; and a processor configured to acquire a contact pressure between the object and the pulse wave sensor based on the change in the magnetic field and obtain bio-information based on the pulse wave signal and the contact pressure.