What Is an XBRL Taxonomy? US GAAP Tags Explained
What an XBRL taxonomy actually is, how the US GAAP and DEI taxonomies differ, what a taxonomy file contains, and a parsing quirk worth knowing before you trust one.
- An XBRL taxonomy is a dictionary of standardized tags, called elements, plus files that define how those elements relate to each other and to the numbers in a filing.
- US public companies tag their financial statements against the US GAAP Financial Reporting Taxonomy, maintained by the FASB, and their cover page against the SEC's own DEI taxonomy.
- A taxonomy is really a schema file plus linkbases: presentation for layout, calculation for arithmetic checks, definition for other relationships, label for readable names, and reference for the accounting rule each element ties to.
- Companies can extend the standard taxonomy with their own tags when no US GAAP element fits, and those extensions do not always follow the usual file layout.
An XBRL taxonomy is the dictionary of standardized tags, called elements, that XBRL uses to mark up a financial statement, along with a set of files that define how those elements relate to each other, how they should be laid out, and which ones can be added together. When a 10-K tags a number as us-gaap:Revenues, that tag only means something because it is defined in the US GAAP taxonomy.
Why a taxonomy exists in the first place
Without a shared dictionary, every company could tag "revenue" with its own label, which would defeat the point of structured data: nobody could compare one filer's numbers to another's without manually mapping terms first. A taxonomy fixes that by giving every reporting concept a single standard name, defined once, that every filer who reports that concept is expected to reuse. us-gaap:NetIncomeLoss means the same thing whether it appears in a filing from a software company or a bank, which is what makes it possible to pull the same concept across thousands of filers at once.
The two taxonomies behind an SEC filing
A US public company's XBRL tagging actually draws on two separate taxonomies, not one:
| Taxonomy | Maintained by | Covers |
|---|---|---|
| US GAAP Financial Reporting Taxonomy | The Financial Accounting Standards Board (FASB), which took over the taxonomy's ongoing development in 2010 | The financial statement line items themselves: assets, revenues, expenses, and every other accounting concept a filer might report |
| DEI (Document and Entity Information) | The SEC | Cover page facts that are not accounting concepts: the filer's name, CIK, fiscal year end, shares outstanding on the cover date, and similar filing metadata |
A single filing's XBRL mixes tags from both: us-gaap:Assets for the balance sheet total, alongside dei:EntityCommonStockSharesOutstanding for the cover page. How XBRL financial statements convert to clean JSON covers how those tagged facts are structured once you pull them out of a filing.
Get this data as clean JSON
SecFeed turns SEC filings into structured data with one API call: GET /v1/xbrl/company-concept. Free key, no card needed.
What a taxonomy actually contains
A taxonomy is not one file. It is a schema file plus several linkbase files that each define one kind of relationship between elements:
| File | What it defines |
|---|---|
| Schema (.xsd) | Declares every element: its name, data type and whether it is a monetary amount, a date, a string or something else |
| Presentation linkbase | How elements should be grouped and ordered, so a balance sheet or income statement renders in a sensible layout rather than an alphabetical list |
| Calculation linkbase | Which elements sum to which totals, so a validator can check that reported subtotals actually add up |
| Definition linkbase | Other relationships between elements, including how dimensional facts, such as segment or product breakdowns, relate to a base concept |
| Label linkbase | The human-readable name (or names, in different roles and languages) for each element, since the element name itself is a machine identifier like us-gaap:Revenues |
| Reference linkbase | Ties an element to the accounting literature it comes from, usually a reference into the FASB Accounting Standards Codification |
Why the taxonomy version matters
The FASB updates the US GAAP taxonomy on an ongoing basis to add new elements as accounting rules change. Every XBRL filing declares which taxonomy version it was tagged against, as part of its schema reference. That matters because a concept available in a recent taxonomy version may not exist in an older one, and because the FASB periodically marks elements as deprecated in favor of a replacement when accounting guidance changes. Comparing the same nominal tag across many years of filings can silently miss data if the element was renamed or split partway through, which is a reason to compare by concept meaning, not only by tag name, when building a long time series.
Extension taxonomies: when the standard list is not enough
No fixed dictionary covers every line item a company might want to disclose. When a filer needs a concept the US GAAP taxonomy does not define, it creates an extension element, with its own small schema and linkbase entries specific to that filer. Extension elements are common for unusual revenue categories, company-specific non-GAAP reconciling items, and industry-specific disclosures. They are real, filed data, but they are not standardized, so the same economic concept can appear under different extension tags at different companies, which is why cross-company comparisons lean on standard US GAAP elements wherever a filer used one.
A layout quirk extension taxonomies can have
Most filings split their linkbases into separate files, matching the pattern used by the standard US GAAP taxonomy itself: one file for presentation relationships, one for calculation, one for definitions. Building SecFeed's own extractor against real filings turned up filers whose extension taxonomy puts the presentation, calculation and definition linkbases inline inside the single schema (.xsd) file instead of as separate linkbase files. The data is equally valid XBRL either way, but a parser written only against the usual multi-file layout will miss those relationships unless it also checks the schema file itself for embedded linkbase content.
Finding tagged values without touching taxonomy files yourself
Reading a filing's raw schema and linkbase files to find one concept is slow, and it only tells you about one company's filing at a time. SecFeed resolves the taxonomy for you, so you can ask for a concept by name and taxonomy instead:
curl -G "https://secfeedapi.com/v1/xbrl/company-concept" \
--data-urlencode "ticker=AAPL" \
--data-urlencode "concept=Revenues" \
--data-urlencode "taxonomy=us-gaap" \
-H "Authorization: Bearer YOUR_API_KEY"
The response returns the concept's reported values over time, with the period and unit resolved from the filing's context and unit definitions, not left as raw XBRL:
{
"concept": "Revenues",
"taxonomy": "us-gaap",
"label": "Revenues",
"units": {
"USD": [
{"end": "2026-09-27", "val": 94930000000, "fy": 2026, "fp": "FY", "form": "10-K"}
]
}
}
In Python, the same lookup reads as:
from secfeed import Client
sf = Client("YOUR_API_KEY")
revenue = sf.xbrl_company_concept(ticker="AAPL", concept="Revenues", taxonomy="us-gaap")
for point in revenue["units"]["USD"]:
print(point["fy"], point["form"], point["val"])
To pull every concept a company has reported instead of one at a time, use /v1/xbrl/company-facts, or /v1/xbrl/frames to pull one concept across every company that reported it for the same period. An overview of SEC XBRL API options compares those endpoints against the SEC's own equivalents.
Frequently asked questions
What is the difference between an XBRL tag and a taxonomy?
A tag, or element, is one defined entry in a taxonomy, such as us-gaap:Assets. The taxonomy is the full dictionary of elements plus the linkbase files that define how they relate to each other, how they are laid out, and which accounting rule each one comes from.
Who maintains the US GAAP taxonomy?
The Financial Accounting Standards Board (FASB), which took over ongoing development and maintenance of the GAAP Financial Reporting Taxonomy in 2010. The SEC separately maintains the DEI taxonomy used for filing cover-page information.
Can a company make up its own XBRL tags?
Yes, through extension elements, when no standard US GAAP element fits what the company wants to disclose. Extensions are valid, filed data, but they are specific to that filer, so they are less comparable across companies than standard elements.
Does every filing use the same taxonomy version?
No. The taxonomy is updated over time, and a filing declares the specific taxonomy version it was tagged against. Because elements can be added, renamed or deprecated between versions, a long time series built on raw tag names should account for that rather than assuming the same tag always means the same thing.
Do I need to parse linkbase files myself to read XBRL data?
No. SecFeed resolves the schema and linkbases when it parses a filing, so endpoints like /v1/xbrl/company-concept and /v1/xbrl-to-json return concepts with readable labels, periods and units already attached.
Get this data as clean JSON
SecFeed turns SEC filings into structured data with one API call: GET /v1/xbrl/company-concept. Free key, no card needed.
For information only, not investment advice. Data from public SEC filings; verify important figures on SEC.gov. See our AI Disclosure.