The National Electric Code is officially adopted as legal building code in 47 states. It is also adopted by local governments in their official building codes. But to buy a new copy costs around $100. Some say you should be able to download the NEC 2014 for free, online . . . .