Auger electron spectroscopy (AES) and secondary ion mass spectroscopy (SIMS) have been used to study in situ the surface segregation of Sn, which occurred during molecular-beam epitaxy (MBE) of Sn-doped GaAs films. With both surface diagnostic techniques, a significant amount of Sn, about three orders of magnitude larger than the portion being incorporated into the growing film was detected in the outermost atomic layers (∠10–20 Å thick) of the prepared film. The surface segregation of Sn started at a substrate temperature as low as 490° C and increased with temperature and−to some extent−with increasing dopant concentration. Thus, the measured doping profiles of Sn-doped GaAs layers, when grown above 490° C, deviated considerably from the ideal profile calculated from the molecular beam intensity of the dopant. The surface segregation of Sn during epitaxial growth was also found in Sn-doped GaAs films prepared by liquid-phase epitaxy (LPE) from Ga solutions.