An apricot tree typically takes around 2 to 4 years to bear fruit after planting, depending on the specific variety and growing conditions.