Part II — Products, companies and places · Chapter 7

Where the dollar store is closer than the supermarket

For 56% of populated tracts in the lower 48 the nearest dollar store is closer than the nearest listed supermarket chain (35% counting every grocery place), and the share in the poorest fifth of tracts is close to three times that in the richest.

On this page
  1. Origins, stores and the population summarized
  2. How complete the store lists are
  3. Income: the dollar store is closer in poorer tracts
  4. Density: the gap is widest in the countryside
  5. Metros: Detroit and Seattle sit at opposite ends
  6. Where the nearest supermarket is more than 10 miles away
  7. State by state
  8. Check your own state
  9. How the pipeline finds the nearest store
  10. Reusing the approach

For each census tract, which is closer: the nearest dollar store or the nearest supermarket? Dollar General, Dollar Tree and Family Dollar together run tens of thousands of small-format stores. This chapter measures the straight-line distance from every populated tract in the 48 contiguous states and DC to the nearest store of each kind, and asks how the answer changes with tract income and population density.

In 83,006 tracts, the nearest dollar store is closer than the nearest store of a listed supermarket chain in 56.4% of them, home to 54.1% of the population. That level depends on what counts as a supermarket. Counting every Overture grocery place as well, chain or not, the share falls to 34.6%. The income pattern does not depend on it: under both definitions the share is much lower in the richest fifth of tracts than in the poorest, from 73.1% to 27.4% with listed chains and from 43% to 15.7% with every grocery place. The rest of the chapter uses the listed chains; the share is highest in low-income rural tracts and lowest in high-income dense ones.

Against listed supermarket chains, the dollar store is closer across much of the South and Midwest, and seldom on the West Coast

Median tract ratio of the distance to the nearest dollar store to the distance to the nearest store of a listed supermarket chain, per H3 resolution-4 hexagon. Below 1, the dollar store is closer. Counting every grocery place as a supermarket would raise every tract's ratio or leave it unchanged. A hexagon's median hides the spread between its towns and its countryside; hover a cell for its tract count and median distances.SourceOverture Maps places 2026-10-21.0; Census TIGER/Line 2024; ACS 2020–2024 5-year
Querychapters/07-store-access/pipeline/90_export.sqlShow SQL
90_export.sqlSQL
CREATE OR REPLACE TABLE hex_r4 AS
SELECT h3_cell_to_parent(p.h3_r5, 4) AS cell, count(*) AS tracts,
       median(a.ratio) AS median_ratio,
       median(a.d_dollar_m) AS median_d_dollar_m, median(a.d_super_m) AS median_d_super_m
FROM acc a JOIN tract_pts p USING (geoid)
GROUP BY ALL;

One compact GeoJSON FeatureCollection, written by COPY ... (FORMAT json)Runs at build time in DuckDB 2.0; shown for reading.Open file

Origins, stores and the population summarized

A store here is a place record that matches a chain in chains.csv: 3 dollar chains and 113 supermarket banners, Walmart Supercenters included. Corner groceries, independent supermarkets and warehouse clubs are not in the supermarket list, which matters for the result (see Caveats).

How complete the store lists are

Overture places come from many sources and are not a store register. The pipeline compares its counts per chain with each company's latest annual report:

Dollar General Corp.20,9422026-02-2722,0311.052
Dollar Tree, Inc.9,0002026-01-319,8461.094
1959 Holdings (Dollar Tree until July 2025)7,6222025-02-017,0680.927
Walmart Inc.4,2602026-01-314,1600.977
The Kroger Co.2,6972026-01-312,3810.883
Albertsons Companies2,2442026-02-282,4361.086
Publix Super Markets1,4322025-12-271,4761.031
7 rows

Dollar General's Overture count is 1.052 times its 10-K count. That is not an independent test: the 0.9 confidence bar for name-only records was chosen because lower bars overcounted Dollar General against the same 10-K. The state-by-state comparison and the other chains are independent of that choice. Family Dollar, counted from brand-tagged records only, is 0.927 times its last reported count, which dates from February 2025, before the chain was sold and closed stores. Walmart is compared with its Supercenters and Neighborhood Markets, at 0.977. checks.sql fails the run if any chain's ratio falls outside 0.85 to 1.15 (0.75 to 1.15 for Family Dollar, whose closures can only lower its true count), or if Dollar General's count is off by more than 25% in more than three of its 48 states.

The errors lean one way. Across the three dollar chains, Overture holds 3.7% more stores than reported; across the reported supermarket chains, it holds 1.7% fewer, with Kroger at 0.883. Extra dollar stores and missing supermarkets both push toward "dollar store closer", so the headline share is more likely too high than too low. Counting only brand-tagged records, which overcount less, still gives 57.9%.

Income: the dollar store is closer in poorer tracts

The poorer the tract, the more often the dollar store is the closer store

Share of tracts where the nearest dollar store is closer than the nearest supermarket, by twentieths of tract median household income, with 95% Wilson intervals. Income is top-coded at $250,001 by the ACS. Income and density move together, so this chart alone does not separate them.SourceOverture places 2026-10-21.0; ACS 2020–2024 5-year

In the poorest twentieth of tracts, the dollar store is closer in 73.1%; in the richest twentieth, in 15.7%. Most of that gap is the dollar stores, not the supermarkets: the median distance to a supermarket is about the same at both ends (1,790 m and 1,870 m), while the median distance to a dollar store rises from 1,088 m to 3,660 m.

Density: the gap is widest in the countryside

Rural tracts are where the dollar store is most often closer

Share of tracts where the dollar store is closer, by twentieths of population density (people per km² of land), log scale, with 95% Wilson intervals. Straight-line distance understates travel in rural areas, where roads are sparse.SourceOverture places 2026-10-21.0; TIGER/Line 2024; ACS 2020–2024 5-year

Splitting by both at once, the share falls with income in every density band. In low-income tracts with fewer than 50 people per km², the dollar store is closer in 87.9%; in high-income tracts with more than 2,000 people per km², in 21.3%. The density bands are set in 20_model.sql.

Within every density band, richer tracts are less likely to have the dollar store closer

Share of tracts where the dollar store is closer, by density band and income quartile. An em dash means missing or suppressed.
People per km² · Income quartile Lowest incomeSecondThirdHighest income
Under 5087.9%n = 3,96885.9%n = 5,34478.5%n = 3,71556.1%n = 1,109
50–50077.3%n = 3,79973.8%n = 4,36565.2%n = 4,79439.2%n = 5,371
500–2,00073.1%n = 6,97961.1%n = 6,05247.6%n = 6,74227.9%n = 8,654
Over 2,00058.8%n = 5,83448.0%n = 4,81938.6%n = 5,32921.3%n = 5,445
0.0%100.0%— missing or suppressed
Share of tracts where the dollar store is closer, by population density band and national income quartile of tract median household income. Hover a cell for its tract count.SourceOverture places 2026-10-21.0; TIGER/Line 2024; ACS 2020–2024 5-year

Metros: Detroit and Seattle sit at opposite ends

The same comparison inside six metro areas

Tract ratio of dollar-store distance to supermarket distance; below 1 (red end) the dollar store is closer. Tract outlines are simplified together to about 150 m, so neighbouring tracts keep their shared edges; very small tracts lose detail. Hover a tract for both distances.SourceOverture places 2026-10-21.0; TIGER/Line 2024 tracts and CBSAs

Share of tracts where the dollar store is closer, by metro

0.0%20.0%40.0%60.0%80.0%Tracts where the dollar store is closerDetroit: 71.5%Detroit71.5%Houston: 62.0%Houston62.0%Chicago: 55.6%Chicago55.6%Atlanta: 53.2%Atlanta53.2%Phoenix: 40.7%Phoenix40.7%Seattle: 19.2%Seattle19.2%All tracts
Share of tracts where the nearest dollar store is closer than the nearest supermarket, in six metro areas
Detroit71.5%
Houston62.0%
Chicago55.6%
Atlanta53.2%
Phoenix40.7%
Seattle19.2%
Census core-based statistical areas, by tract point-in-polygon. The dashed line is the national share.SourceOverture places 2026-10-21.0; TIGER/Line 2024

In the Detroit metro the dollar store is closer for 71.5% of tracts; in Seattle, 19.2%. The median Seattle tract's nearest dollar store is 1.62 times as far as its nearest supermarket; in Detroit the ratio is 0.66.

Where the nearest supermarket is more than 10 miles away

5,657 tracts are more than 10 miles (16.1 km) from the nearest store of a listed supermarket chain. In 2,533 of them a dollar store is within 5 miles. Counting every grocery place, only 1,705 tracts are that far from one. Part of the difference is missing records rather than missing stores: in Elko County, Nevada, Overture holds the town's Walmart, Smith's and Albertsons only as pharmacy, garden-centre, fuel or money-transfer records, so no store record matches, and in White Pine County, Nevada, Overture lists grocery places but no listed chain. Those two counties hold most of the 23 tracts more than 150 km from a listed supermarket; with every grocery place counted, the farthest tract is 136.6 km away.

State by state

Mississippi has the highest share, 88.4%; among states, California and Washington have the lowest, 29.4% and 28.2%, and the District of Columbia is lower still at 15.5%.

Mississippi87388.4%2.56.1
West Virginia54684.2%2.95.8
Arkansas82280.0%2.84.9
Alabama1,43077.6%2.33.7
Oklahoma1,20277.2%1.93.0
Louisiana1,36776.9%1.82.7
North Dakota22876.8%3.812.4
Kentucky1,30176.4%2.44.1
Indiana1,68676.3%1.82.9
South Dakota24276.0%3.914.8
Ohio3,15575.7%1.62.5
Michigan2,91475.1%1.82.9
12 of 49 rows

Check your own state

The dashboard below runs the chapter's tract table in your browser. The pipeline writes Parquet extracts to public storage: every tract with its population, income, density and distances to the nearest dollar store and listed supermarket (3 MB, sorted by state), every store used, and three small rollups by state, density and income that the panels read, about 80 KB together. DuckDB-Wasm reads them over HTTP range requests. Every panel shows its SQL. The Ask box at the bottom hands your question to an AI model that writes the SQL; the query runs here, on the same files, and the model only sees the small result. Its answers are live and unaudited, unlike the numbers above.

Live · runs in your browser

Nearest dollar store and supermarket, every US census tract

Engine
DuckDB 2.0.1 · Wasm
Data read
0 B of 3.4 MB

The chapter's data sits in 5 Parquet files on public storage, 3.4 MB in all. Start the engine and DuckDB runs inside this page: each chart below is a SQL query that reads only the row groups and columns it needs over HTTP range requests.

  • tractsEvery tract: people, income, density, miles to each nearest store
  • storesEvery dollar store and listed supermarket: chain, state, location
  • cellsPeople by state, density band and national income tenth
  • distancePeople by state, density and quarter-mile distance to each store kind
  • nearestPeople by state, density and banner of the nearest store

Queries this chapter's published snapshot; the data does not update in real time. No account, nothing uploaded.

How the pipeline finds the nearest store

The pipeline is six SQL files run in order against one DuckDB database file: five steps and a manifest writer. It downloads only what it needs from each source and keeps intermediate tables in out/.

  1. Read the US slice of Overture places

    Overture's places are one global set of 16 GeoParquet files. Each row carries a bbox struct, and a filter on it lets DuckDB skip row groups whose min/max statistics fall outside the US. The footers rule out all but 1,821 of 6,144 row groups, in 6 files, and DuckDB downloaded 2.97 GB of the 11.82 GB release. Column pruning saved less than it could: the columns the query names take 1.68 GB of those row groups, but over HTTP DuckDB fetched close to whole row groups.

    10_stage.sqlSQL
    COPY (
      SELECT id, geometry, confidence, operating_status, name, brand, brand_wikidata,
             basic_category, category, region
      FROM (FROM places_in_box(-125.0,  -66.8, 24.3, 49.5)            -- contiguous states
            UNION ALL FROM places_in_box(-179.9, -129.9, 51.0, 71.6)  -- Alaska
            UNION ALL FROM places_in_box(-160.6, -154.7, 18.8, 22.3)) -- Hawaii
    ) TO 'chapters/07-store-access/out/places_us_bbox.parquet' (FORMAT parquet, COMPRESSION zstd);
    -- places_in_box: WHERE p.bbox.xmin BETWEEN x0 AND x1 AND p.bbox.ymin BETWEEN y0 AND y1

    20,398,256 placeschapters/07-store-access/pipeline/10_stage.sql

  2. Match chains with one regular expression

    Every chain pattern goes into one alternation, longest first, so "giant eagle" wins over "giant". A constant pattern is compiled once; joining each chain's pattern row by row was much slower. Records with a brand tag need a confidence of 0.5; records matched on their name alone need 0.9. Family Dollar counts brand-tagged records only, because its name-only records overcounted it against its last annual report.

    10_stage.sqlSQL
    SET VARIABLE chain_re = (
      SELECT '^(' || string_agg(alt, '|' ORDER BY length(alt) DESC, alt) || ')\b'
      FROM (SELECT DISTINCT unnest(string_split(pattern, '|')) AS alt FROM chains));
    
    SELECT *, regexp_extract(lower(coalesce(brand, '')), getvariable('chain_re'), 1) AS m_brand,
              regexp_extract(lower(coalesce(name, '')),  getvariable('chain_re'), 1) AS m_name
    FROM 'chapters/07-store-access/out/places_us_bbox.parquet';

    73,960 candidates; 2,164 duplicates droppedchapters/07-store-access/pipeline/10_stage.sql

  3. Read TIGER tracts inside their zip files and place stores in tracts

    ST_Read takes a GDAL path, so /vsizip/ reads a shapefile inside a zip without unpacking it, and /vsizip//vsicurl/ does the same for a zip on a web server. On December 3, 2026, www2.census.gov answered DuckDB's HTTP client with HTTP 403 Forbidden while it still served curl and GDAL. run.sh therefore downloads the Census files with curl first, and census_zip() points at the local copies; setting CENSUS_ROOT=https://www2.census.gov reads them in place where the server allows it. ST_Read needs a constant path, so the 51 calls are built as one query string and run with query(). A join on ST_Contains is planned as a spatial join over an R-tree.

    10_stage.sqlSQL
    -- census_zip(path): '/vsizip/' plus the local copy, or '/vsizip//vsicurl/' plus the URL
    CREATE OR REPLACE MACRO tiger_tracts(fips) AS TABLE
      SELECT * FROM ST_Read(census_zip('/geo/tiger/TIGER2024/TRACT/tl_2024_' || fips || '_tract.zip'));
    
    CREATE OR REPLACE TABLE store_in_tract AS
    SELECT s.id, t.geoid, t.statefp
    FROM store_candidates s JOIN tracts t ON ST_Contains(t.geom, s.geom);

    84,415 tractschapters/07-store-access/pipeline/10_stage.sql

  4. One point per tract

    The centroid of a crescent-shaped tract can fall outside it. Where it does, the pipeline uses the Census internal point, which is always inside.

    20_model.sqlSQL
    CASE WHEN ST_Contains(geom, centroid) THEN centroid::GEOMETRY
         ELSE ST_Point(intpt_lon, intpt_lat) END AS pt

    1,023 centroids fell outside their tractchapters/07-store-access/pipeline/20_model.sql

  5. Nearest store of each kind, three ways

    For each tract and each kind of store, find the store with the smallest ST_Distance_Spheroid. An H3 prefilter looks only at stores in the ring of resolution-5 cells around the tract and widens the ring until the nearest candidate is provably the nearest store.

    20_model.sqlSQL
    SELECT t.geoid, t.kind, arg_min(s.id, ST_Distance_Spheroid(t.pt, s.geom)) AS id,
           min(ST_Distance_Spheroid(t.pt, s.geom)) AS dist_m
    FROM todo t
    CROSS JOIN unnest(h3_grid_disk(t.h3_r5, k)) AS ring(cell)
    JOIN targets s ON s.h3_r5 = ring.cell AND s.kind = t.kind
    GROUP BY ALL
    HAVING min(ST_Distance_Spheroid(t.pt, s.geom)) <= k * 0.5 * h3_get_hexagon_edge_length_avg(5, 'm');

    332,024 tract rows (4 store definitions) · 123 schapters/07-store-access/pipeline/20_model.sql

The three nearest-neighbour methods return identical distances for every Arkansas tract (checks.sql compares them). They differ in speed:

ArkansasST_DWithin spatial join (R-tree)0.12
ArkansasH3 ring prefilter0.17
ArkansasNEAREST join (brute force)70.28
nationalST_DWithin spatial join (R-tree)2.70
nationalH3 ring prefilter16.64
5 rows

The brute-force NEAREST join took 70.28 s for Arkansas alone, which is why it runs only there, as the reference answer. The chapter's distances come from the H3 version, because it runs all four store definitions (see Caveats) in one pass; checks.sql requires the national R-tree answers to match it for every tract.

Reusing the approach

The nearest-neighbour step works for any "distance from each A to the closest B" question: clinics and counties, schools and bus stops. A spatial join on a radius, then arg_min over the matches, gives the exact nearest point as long as the radius is wide enough; widen it in steps for the rows that found nothing.

SQL
-- Nearest b for each a, exact: try a small radius, then retry the misses with a bigger one.
SELECT a.id, arg_min(b.id, ST_Distance_Spheroid(a.geom, b.geom)) AS nearest_b,
       min(ST_Distance_Spheroid(a.geom, b.geom)) AS meters
FROM a JOIN b ON ST_DWithin(a.geom, b.geom, 0.05)      -- degrees; planned as an R-tree spatial join
GROUP BY a.id;

The radius is in degrees, so accept a match only if its distance in metres is smaller than the radius converted to metres at that latitude (20_model.sql shows the test).

Shell
# From the repository root, with the DuckDB 2.0.0 CLI on PATH
bash chapters/07-store-access/pipeline/run.sh

Staging, modelling and export took 6 minutes on a 16-core Windows 11 machine with two DuckDB threads. The nearest-neighbour search took 123 s, including the brute-force Arkansas join, and the Overture read 178 s. checks.sql and the manifest add a few more. Wall time, download sizes and open questions are in the pipeline README. The full pipeline, the chain list and the reference counts are in the pipeline folder.