For the uniform magnetic field in an off-axis cylindrical cavity, let point from the conductor's axis to the hole's axis and let the current flow in . Its uniform current density in the metal is
Superpose a complete cylinder carrying and a cylinder occupying the hole carrying . Inside a uniformly filled cylinder, Ampère's law gives . For any point in the cavity,
There is no remaining position dependence, so the field is uniform. Its magnitude is , perpendicular to the axis-offset vector in the cross-sectional plane. Reversing the current reverses the field.