Center For Integrating Research and Learning

ArrowØrsted's Compass

This is a Java tutorial, which requires that you have Java, a free software, installed on your computer. It works best if you have the latest version of Java installed. If you are having trouble viewing or using this tutorial, try downloading the latest version of Java.

In 1820, a Dane by the name of Hans Christian Ørsted discovered the relationship between electricity and magnetism in a very simple experiment that is shown in the below tutorial. One evening, as Ørsted was setting up materials for a lecture, he brought a compass close to a live electrical wire, and observed that the needle on the compass jumped and pointed to the wire. More experimentation showed that a circular magnetic field surrounded a current-carrying wire. Ørsted had proved that electricity and magnetism were connected and the study of electromagnetism was born.

Interactive Java Tutorial
Our servers have detected that your web browser does not have the Java Virtual Machine installed or it is not functioning properly. Please install this software in order to view our interactive Java tutorials. You may download the necessary software by clicking on the "Get It Now" button below.


The equipment in the tutorial models Ørsted's 1820 apparatus. The battery is a voltaic pile constructed of copper and zinc plates in a dilute acid solution. A copper wire is held in place by wooden clamps. Because the battery is not connected, the compass needle points north, attracted solely by the Earth's magnetic field.

Click the Turn On button to connect the battery and create an electric current in the wire, which travels from the positive to the negative terminals. When the current flows through the wire, the compass needle aligns itself with the magnetic field created by the electrons traveling in the current, rather than with the Earth’s magnetic field. Because the magnetic field travels around the wire in a circle (see our Magnetic Field of a Wire tutorial), the compass will point in different directions depending on where it’s placed. If you hit the Flip Battery button to reverse the direction of the current in this tutorial, the magnetic field around the wire will reverse direction, too, as will the compass needle.

Related Electricity & Magnetism Pages

© 1995–2014 National High Magnetic Field Laboratory • 1800 E. Paul Dirac Drive, Tallahassee, FL 32310–3706 • Phone: (850) 644–0311 • Email: Webmaster

NSF and State of Florida logos NSF logo State of Florida logo

Site Map   |   Comments & Questions   |   Privacy Policy   |   Copyright   |   This site uses Google Analytics (Google Privacy Policy)
Funded by the National Science Foundation and the State of Florida