To study the influence of coated-conductor magnetization on the field quality of accelerator magnets, we made a small dipole magnet consisting of four racetrack coils wound with GdBCO coated conductors and measured its magnetic field in liquid nitrogen by using rotating pick-up coils. We focused on the dipole and sextupole components (coefficients) of the magnetic field, which vary with time owing to the decay of the magnetization of the coated conductors. About 50 min (3055 s) after the current was ramped up to 50 A, the dipole coefficient normalized by the design value of the dipole component, i.e., the value calculated with the designed coil shape and the uniform current distribution in the coated conductors, increased by 7.4 × 10 −4 , and the sextupole coefficient normalized by the design value of the dipole component increased by 1.8 × 10 −4 . The magnitudes of the dipole and sextupole components depended on the excitation history of the magnet. Electromagnetic field analyses were carried out to calculate the current distributions in coated conductors, considering their superconducting properties; the dipole and sextupole coefficients were then determined from the calculated current distributions. Although the analyses were based on the two-dimensional approximation of the cross-section of the magnet, the temporal behaviours as well as the hysteretic characteristics of the calculated dipole and sextupole coefficients agree qualitatively with those of the dipole and sextupole coefficients measured in the magnet.