One of the fundamental properties of the proton is its magnetic moment,µp. So farµp has been measured only indirectly, by analysing the spectrum of an atomic hydrogen maser in a magnetic field1. Here we report the direct high-precision measurement of the magnetic moment of a single proton using the double Penning-trap technique2. We drive proton-spin quantum jumps by a magnetic radio-frequency field in a Penning trap with a homogeneous magnetic field. The induced spin transitions are detected in a second trap with a strong superimposed magnetic inhomogeneity3. This enables the measurement of the spin-flip probability as a function of the drive frequency. In each measurement the proton's cyclotron frequency is used to determine the magnetic field of the trap. From the normalized resonance curve, we extract the particle's magnetic moment in terms of the nuclear magneton:μp = 2.792847350(9)μN. This measurement outperforms previous Penning-trap measurements4,5in terms of precision by a factor of about 760. It improves the precision of the forty-year-old indirect measurement, in which significant theoretical bound state corrections6were required to obtainµp, by a factor of 3. By application of this method to the antiproton magnetic moment, the fractional precision of the recently reported value7can be improved by a factor of at least 1,000. Combined with the present result, this will provide a stringent test of matter/antimatter symmetry with baryons8.