Apex () is a town in Wake County, North Carolina, United States. Apex encompasses the community of Friendship at its southern border. In 1994, the downtown area was designated a historic district, and the Apex train depot, built in 1867, is designated a Wake County landmark. The depot location marks the highest point on the old Chatham Railroad, hence the town's name. The town motto is "The Peak of Good Living".
In the precolonial era, the town's area was inhabited by the Tuscarora tribe of Native Americans. In the late 19th century a small community developed around the railroad station. The forests were cleared for farmland, much of which was dedicated to tobacco farming. Since Apex was near the state capital, it became a trading center. The railroad shipped products such as lumber, tar, and tobacco.