A principal business code is a six-digit number from the North American Industry Classification System (NAICS) that tells the IRS what your business does. You enter it on your federal business tax return, and you find yours either in the “Principal Business Activity Codes” list at the back of your tax form’s instructions or by searching the Census Bureau’s NAICS tool at census.gov/naics.1United States Census Bureau. North American Industry Classification System (NAICS)
What the Six Digits Mean
Each digit narrows the classification. The first two identify a broad sector such as manufacturing or retail trade, the third marks a subsector, and the remaining digits point to a specific activity. Code 531210, for example, covers offices of real estate agents and brokers: “53” is the real estate sector, “531” is real estate services, and the full six digits isolate that brokerage activity.2Internal Revenue Service. 2025 Instructions for Schedule C (Form 1040)
The IRS uses the code to compare your reported income and deductions against others in the same industry. If your numbers sit well outside the norm for your code, say unusually low revenue or unusually high deductions, that can draw closer scrutiny. Accuracy matters mainly because of this benchmarking function.
How to Look Up Your Code
Two free sources are reliable.
- Your tax form’s instructions. Every IRS form that requires a business code includes a “Principal Business Activity Codes” list at the back of its instruction booklet. The Schedule C instructions, for instance, organize the list by broad category (retail trade, professional services, construction, and so on). Start with the category that fits and work down to the specific activity that matches your primary source of sales or receipts.2Internal Revenue Service. 2025 Instructions for Schedule C (Form 1040)
- The Census Bureau’s NAICS search tool. At census.gov/naics you can type a keyword like “bakery” or “consulting,” or a partial code, and browse matching results. Useful when you aren’t sure which broad category fits.1United States Census Bureau. North American Industry Classification System (NAICS)
Read the descriptions carefully. Small differences change the code: a business that manufactures furniture and one that sells furniture fall under completely different sectors. The code should reflect the activity that generates the largest share of your total receipts, not a side line.2Internal Revenue Service. 2025 Instructions for Schedule C (Form 1040)
Picking a Code When You Do More Than One Thing
If you earn revenue from more than one activity, use the code for whichever activity brings in the most money. The Schedule C instructions phrase this as the activity that represents “the principal source of your sales or receipts.”2Internal Revenue Service. 2025 Instructions for Schedule C (Form 1040) For partnerships filing Form 1065, the test uses “total receipts,” which includes gross sales plus other categories of income reported on the return.3Internal Revenue Service. 2025 Instructions for Form 1065
Online sellers trip up here. If you sell mainly through a website, catalog, or other nonstore method, don’t reach for a generic e-commerce code. Pick the code that matches what you actually sell. The IRS gives the example of an online store primarily selling prescription drugs: that business uses code 456110 (Pharmacies and Drug Retailers), not a generic retail code.4Internal Revenue Service. Instructions for Form 1120-S (2025)
When Nothing Fits: Code 999999
If no listed code matches, the IRS provides code 999999, “Unclassified establishments (unable to classify).” Treat this as a last resort. Using it means the IRS cannot benchmark your return against a specific industry, which can prompt questions. Look hard for the closest match before falling back on 999999.
Where the Code Goes on Common Tax Forms
The line varies by form.
- Schedule C (Form 1040), sole proprietors and single-member LLCs: six-digit code on Line B, with the business activity described on Line A.5Internal Revenue Service. Schedule C (Form 1040) 2025 – Profit or Loss From Business
- Schedule F (Form 1040), farmers: a principal agricultural activity code on Line B. Schedule F uses a shorter list of 17 farm-specific codes rather than the full NAICS list.6Internal Revenue Service. 2025 Instructions for Schedule F (Form 1040)
- Form 1065, partnerships: activity description in Item A and the six-digit code in Item C on page one.3Internal Revenue Service. 2025 Instructions for Form 1065
- Form 1120, C-corporations: the code on Schedule K, line 2a, with the activity description on line 2b and a product or service description on line 2c.7Internal Revenue Service. Form 1120 – U.S. Corporation Income Tax Return (2025)
- Form 1120-S, S-corporations: Item B on page one.4Internal Revenue Service. Instructions for Form 1120-S (2025)
- Form 990-T, tax-exempt organizations with unrelated business income: a business activity code in Item C of Schedule A for each separate unrelated trade or business. A two-digit NAICS code is padded with four zeros to make six digits (code 45 becomes 450000).8Internal Revenue Service. 2025 Instructions for Form 990-T
Electronic filing software usually validates the entry against a built-in list and will flag a nonexistent or retired code before you submit.
Updating the Code When Your Business Changes
Businesses shift. A consulting firm moves into software development, a retailer pivots to wholesale. When your primary revenue source changes, your principal business code changes with it. You don’t file a separate form or tell the IRS in advance. Enter the new code on your next return based on whichever activity now generates the largest share of your total receipts.9Internal Revenue Service. 2025 Instructions for Form 1120
If you realize you used the wrong code on a prior return, you generally don’t need to amend just to fix it. An incorrect code by itself doesn’t change the tax you owe. Use the correct code going forward. If the wrong code was part of a broader reporting error that did affect your liability, correct it as part of the amended return addressing the underlying issue.
What Happens If You Pick the Wrong Code
An incorrect code doesn’t directly change your tax. The code is a classification tool, not a line in the tax calculation. The real risk is indirect. The IRS compares your return against industry averages, and a mismatched code can make ordinary deductions look abnormal. A graphic designer who accidentally selects a code for heavy-equipment manufacturing may see the return flagged, because the expense pattern looks nothing like what that industry typically reports.
The accuracy-related penalty under 26 U.S.C. ยง 6662 adds 20 percent to any underpayment of tax caused by negligence or a substantial understatement of income.10Office of the Law Revision Counsel. 26 USC 6662 A simple mistake in code selection, on its own, would not trigger this penalty, because there is no underpayment. It could become a problem if someone deliberately chose a code associated with higher typical deductions to make inflated write-offs look normal. That kind of intentional misrepresentation can be treated as negligence or disregard of IRS rules, which are grounds for the penalty.11eCFR. 26 CFR 1.6662-2 – Accuracy-Related Penalty
If a notice does arrive, the IRS evaluates penalty relief based on whether you exercised ordinary business care and prudence. The agency looks at what happened, what steps you took to comply, and whether you corrected the mistake once you discovered it.12Internal Revenue Service. 20.1.1 Introduction and Penalty Relief Keeping a short record of how you chose your code, and fixing it promptly on future returns, puts you in a strong position if questions come up.
Uses Outside Your Tax Return
Your NAICS code also matters beyond tax season. The Small Business Administration uses NAICS codes to set size standards that decide whether your business counts as “small” for federal purposes. The thresholds vary by industry: some are measured in annual receipts, others in employee counts. A new single-family housing construction company qualifies as small with annual receipts under $45 million, for example.13eCFR. 13 CFR Part 121 – Small Business Size Regulations Federal contracts also tie to NAICS codes: when an agency sets aside a contract for small businesses, or for women-owned or economically disadvantaged women-owned small businesses, eligibility runs through the NAICS code assigned to that contract.14Acquisition.GOV. 19.1505 Set-Aside Procedures If you pursue government work, the right code matters well beyond the return.