Area code 940 is a telephone area code in the North American Numbering Plan (NANP) for the U.S. state of Texas in the Wichita Falls and Denton areas. It was created on July 7, 1997, in a split from area code 817.