We study nuclear spin frequency shifts in a 3 He-129 Xe comagnetometer caused by spin polarization of 3 He. We use stemless cylindrical cells to systematically vary the cell geometry and separately measure the cell shape-dependent and shape-independent frequency shifts. We find that a certain aspect ratio for a cylindrical cell cancels the dipolar effects of 3 He magnetization in the regime of fast spin diffusion. Using this control we observe a scalar 3 He-129 Xe collisional frequency shift characterized by an enhancement factor κHeXe = −0.011 ± 0.001 in excellent agreement with theoretical calculation. PACS numbers: 32.30.Dx, 06.30.Gv,39.90.+d Nuclear spin comagnetometers [1,2] are used in a number of precision fundamental physics experiments [3], such as searches for new long-range spin-dependent forces [4][5][6][7] and tests of CP, CPT and Lorentz symmetries [8][9][10]. They are also used for inertial rotation sensing [11][12][13][14][15], and magnetometry [16]. Measurements of nuclear spin precession frequencies allow nHz level frequency resolution because of long nuclear spin coherence times, as well as good accuracy and long-term stability [17,18].However, one unavoidable source of frequency shifts in nuclear magnetic resonance experiments is due to magnetic dipolar interactions between the spins. Local dipolar interactions are averaged to zero in a gas or liquid due to fast isotropic tumbling, but distant dipolar interactions can lead to complex spin dynamics [19][20][21][22][23]. Unlike most previous studies, we measure the dipolar frequency shifts in the regime where the time scale of atomic diffusion across the whole sample is much faster than both the time scale of long-range dipolar interactions and of the transverse spin relaxation. In this regime, used in most precision co-magnetometer experiments [18], the frequency shifts depend only on the shape of the cell containing the atoms. A similar fast-diffusion regime was previously studied by NMR in nanopores [24].Nuclear spin dipolar interactions cause systematic frequency shifts in comagnetometer precision measurements [25,26] and are subject of some controversy [27,28]. Here we use an anodic bonding batch fabrication process [29] to make a series of stemless cylindrical cells that contain 3 He and 129 Xe, as well as 87 Rb and N 2 . Well-defined cell shapes allow precision comparison with a simple theory for dipolar frequency shifts that we develop based on magnetometric demagnetizing factors [30]. We find that for a certain aspect ratio of the cylindrical cell the dipolar frequency shifts can be eliminated. An optimal and well-defined cylindrical geometry can improve the stability of nuclear-spin comagnetometers used for fundamen-tal physics experiments [4-7, 9, 10, 25]. It also can be used in NMR metrology applications instead of spherical cells that are hard to fabricate without stems [31].Excellent control of long-range dipolar fields also allows us to resolve a small scalar frequency shift between 3 He and 129 Xe nuclear spins mediated by sec...