ACS API negative codes: keep estimates and annotations together
A spreadsheet total of Census estimates suddenly becomes a huge negative number. The arithmetic may be working perfectly: it has added a numeric code that was never an amount.
In American Community Survey (ACS) API output, some estimate and margin fields use special numbers together with annotations. Keep the pair. Decode its meaning before calculation, and preserve the distinction between a measured zero and a value that is unavailable.

Start with the variable, not the minus sign
Save the dataset year, product, geography, full variable name and response as received. Confirm the variable’s label, unit and universe—the population it describes. The 2025 ACS API documentation links the variable lists for each table product. Choose the list for the actual dataset; a similarly named column from another product is not a substitute.
The Census variable-type reference distinguishes E (estimate), EA (estimate annotation), M (margin of error) and MA (margin annotation). Where an annotation exists, it supplies the representation to use in place of the corresponding numeric field. Check which companion fields your dataset exposes rather than constructing column names blindly.
There are two different blanks to notice: a null annotation beside an ordinary numeric estimate, and a null estimate itself. They are not interchangeable. A cleaning step that converts both to zero destroys that distinction before you start asking questions.
Five invented rows that expose the problem
This synthetic exercise uses fictional, non-overlapping areas A–E and one common count measure. It is not a Census response or a finding about real places. Raw fields are shown as strings to make preservation visible; null is a missing value, not the word “null.”
| Area | E | EA | M | MA |
|---|---|---|---|---|
| A | 120 | null | 15 | null |
| B | 0 | null | 7 | null |
| C | -888888888 | (X) | -888888888 | (X) |
| D | -666666666 | - | -222222222 | ** |
| E | 500 | null | -555555555 | ***** |
Use the official estimate and annotation values table to interpret these selected codes. (X) means not applicable or unavailable. The dash marks an estimate that could not be computed; ** marks an uncomputable margin because of insufficient sample observations. ***** concerns a controlled estimate: its sampling margin is not appropriate and may effectively be treated as zero. That narrow exception does not turn every missing margin into zero or rule out other sources of error.
The exercise therefore preserves B’s estimate as zero, leaves C and D without analytical estimates, and retains E’s estimate of 500. E’s special margin does not invalidate its estimate. Store the documented controlled-estimate reason alongside any derived zero sampling margin; keep the original code too.
Make the cleaned table explain its decisions
Create separate fields for the raw value, raw annotation, display text, analytical value and interpretation. An analytical null should have a reason. For C, that reason is “not applicable or unavailable,” not an invented choice between the two. For D, use “estimate not computable” and retain the source note; the dash alone does not identify the exact underlying cause for every variable.
For this fixture, the usable estimates are 120, 0 and 500. Their subtotal is 620 across three of five areas. Replacing C and D with zero also produces 620, which is why a plausible total is a poor cleaning test. The replacement would imply complete five-area coverage that the input does not support. Do not label 620 the overall total, and do not silently average it over five areas.
Nor should the margins 15 and 7 simply be added to the controlled-estimate zero to manufacture a margin for 620. This exercise checks field interpretation and coverage, not uncertainty propagation. After decoding, the margin-of-error guide helps examine what a supplied uncertainty measure supports.
A compact review before the data reaches a chart
- Read annotations before numeric aggregation. Keep estimates and their margins separately classified. A problem with one does not automatically remove the other.
- Match documented codes, not every negative number. A rule such as “negative means missing” is not a general data rule. Use this product’s definitions and flag unexplained values for review.
- Keep unusual display annotations intact. The official table also includes bounded-median displays such as a value with a plus or minus suffix. Do not strip a suffix and silently treat a bound as an exact median.
- Expose coverage. Count unavailable estimates and state which rows a calculation includes. If an annotation is unfamiliar or conflicts with its raw value, retain the pair and stop that row from entering the calculation until resolved.
Before joining these values to another file, also verify that both files describe the same geography. A matching code does not solve the ZIP-versus-ZCTA distinction.
A useful handover for the fictional exercise is: “The subtotal is 620 for A, B and E. C is unavailable or not applicable, and D has no computable estimate; neither was imputed as zero. The original values and annotations are retained.” That statement makes the cleaning decision inspectable instead of hiding it inside a formula.
Author: OSINT Jet · Primary sources reviewed 20 November 2026
