» more from Personal Finance

Residents of North Dakota can breath a little easier: They're the least likely to be audited by either the Internal Revenue Service or state tax officials, according to an analysis of more than 6,300 actual IRS and state audits by TaxAudit.com.

The Peace Garden State's budget surpluses from the energy boom and its small population tend to help residents keep tax auditors at bay, according to TaxAudit.com, which provides audit defense services for TurboTax users and handled and resolved more than 24,000 audits last year. TaxAudit.com ranked states on the likelihood of a tax audit based on user data from their 2013 tax returns.

The number of IRS personnel in a state, how a state's tax laws differ from the federal tax code and what activities federal and state officials want to target in a given year—for example, the IRS frequently audits horse breeders to see if they are accurately tracking their expenses—affect the volume of audits in each state.

The one thing you can do to avoid being audited by the tax man: "Never leave off income from your tax return," said Dave Du Val, vice president of customer advocacy at TaxAudit.com.

Check out CNBC's Kelli Grant's latest tips on avoiding a tax audit.

By Tom Anderson

DNY59 | E+ | Getty Images