InAs thin films with good characteristics were grown on GaAs (0 0 1) substrates by molecular beam epitaxy. Cross-sectional transmission electron microscopy indicated that most of the threading dislocations formed by the interaction of misfit dislocations are annihilated above a small thickness. The high electron mobility and small temperature dependence of InAs epilayers are useful for magnetic sensors which is demonstrated by the properties of Hall effect devices.