Area codes 540 and 826 are telephone area codes in the state of Virginia. Area code 540 was created on July 15, 1995 as a split from 703. It covers the northwestern and southwestern parts of Virginia, including cities like Alexandria, Fairfax, Roanoke, Harrisonburg, and Fredericksburg. It was split by 276 in 2001 and then overlaid by 826 on June 14, 2022.[1]