There is no cost to get a federal employer identification number (EIN) through the Internal Revenue Service. The best way to apply for an EIN is to visit the IRS website and apply for it online. It'll take about 5 minutes to complete the EIN application, and the number is available immediately afterward.