US federal holidays, business days and NYSE market holidays (free sample)
US federal holiday dates with their observed dates, plus a day-by-day business-day calendar, as CSV and iCalendar (.ics). Generated from 5 U.S.C. 6103 with the standard observance rule: a Saturday holiday is observed the Friday before, a Sunday holiday the Monday after (so New Year's Day 2022 was observed on Friday 2021-12-31).
Guides
- US federal holiday rules, observance and 2026-2027 dates
- Count business days in Python (federal and NYSE calendars)
Python package (free)
usbizdays answers "is this a business day?" for three US calendars, with no dependencies and no data files: federal (federal employees; 5 U.S.C. 6103, from 1971), nyse (NYSE trading days, from 2000) and fed (Federal Reserve Banks, from 2000; a Saturday holiday is not moved to Friday).
from usbizdays import is_business_day, add_business_days, business_days_between
is_business_day("2026-04-03", calendar="nyse") # False: Good Friday
is_business_day("2026-04-03", calendar="fed") # True
add_business_days("2026-11-25", 3) # date(2026, 12, 1)
business_days_between("2026-11-01", "2026-12-01") # 19
CLI: usbizdays --calendar nyse holidays 2027, usbizdays add 2026-11-25 3. Install with pip install usbizdays (once published) or run from a clone with PYTHONPATH=src python3 -m usbizdays ....
Useful for: payroll and settlement date math, SLA and due-date calculations, "next business day" logic, data warehouses that need a date dimension, and calendar imports.
Free sample (this repo)
| File | Contents |
|---|---|
sample/federal_holidays.csv |
All federal holidays 2024-2028: actual date, observed date, weekday |
sample/business_days.csv |
Every day of 2026: weekend flag, observed-holiday flag, business-day flag, index in month, business days remaining in month |
sample/nyse_closures_2026_2027.csv, sample/nyse_early_closes_2026_2027.csv |
NYSE full-day closures and 1:00 pm ET early closes for 2026-2027 |
sample/ics/federal_holidays_2026.ics, ..._2027.ics |
Observed holidays as all-day calendar events (import into Google Calendar, Outlook, Apple Calendar) |
business_days.csv columns: date, is_weekend, is_federal_holiday_observed, is_business_day, business_day_index_in_month, business_days_remaining_in_month.
Full set ($15, one-time)
Buy the full set on Polar (Polar is the merchant of record and handles sales tax). It contains:
- Federal holidays 1971-2050 (815 rows, CSV + JSON) and business days 2000-2050 (18,628 rows)
- NYSE trading calendar 2000-2050: every day with open/closed, reason, early closes, previous/next trading day; 490 closures (including Sept 11 2001, Hurricane Sandy, national days of mourning) and 110 early closes
- Federal Reserve Bank holidays 2000-2050 (Saturday holidays are not moved to Friday, unlike the federal-employee calendar)
- Extended business-day table: weekday, holiday name, previous/next business day, business days in month, last-business-day-of-month flag, index in year
- SQLite database with every table, and a tested PostgreSQL load script
- 80 .ics files, one per year
bizdays.py(Python 3 standard library):is_business_day,add_business_days,business_days_between, holidays for any year from 1971, plus a CLI- The generator scripts and tests
Also sold as part of the calendar data bundle: this pack plus the other two Plainfold calendar data packs (business days, date dimension, time zone transitions) for $35 instead of $49.
How it was checked
Tests compare against known observed dates. Every observed federal holiday for 1971-2050, and every NYSE closure and early close for 2000-2050, was also compared with the open-source Python holidays package (v0.108): 0 differences. Not compared row by row with OPM's, NYSE's or the Federal Reserve's own published tables. Future unscheduled market closures cannot be predicted.
Rules and limits
- Holidays: New Year's Day; Martin Luther King Jr.'s Birthday (from 1986); Washington's Birthday; Memorial Day; Juneteenth (from 2021); Independence Day; Labor Day; Columbus Day; Veterans Day (fourth Monday of October 1971-1977, November 11 from 1978); Thanksgiving; Christmas.
- NYSE (sample and full set): closed on Good Friday, open on Columbus Day and Veterans Day; a Saturday New Year's Day is not observed on December 31.
- Not included: Inauguration Day (Washington, DC area only), state and local holidays, Nasdaq/CME/bond-market schedules, and one-off federal closures by executive order.
- Future years follow current law; Congress can change it. Verify against official sources before legal, payroll or settlement use.
Related
- plainfoldhq/date-dimension: date dimension table and 4-5-4 / 4-4-5 / 5-4-4 retail calendars (Python package
retailcal); full pack on Polar. - plainfoldhq/tz-transitions: IANA time zone transitions 1970-2050 and DST test vectors.
License
Code: MIT. Data: CC0 1.0 (public domain). Made by Plainfold, with AI assistance. Not affiliated with any government agency. Questions: plainfoldhq@proton.me.
Metadata
Release files for usbizdays 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| usbizdays-1.0.0.tar.gz | 11.4 kB | With provenance | Details for usbizdays-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| usbizdays-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for usbizdays-1.0.0-py3-none-any.whl |
Total release size: 21.5 kB
Release files / usbizdays-1.0.0.tar.gz
| Download URL | usbizdays-1.0.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cc66c7f9e00cb5c4970d2ead21c8dd7e114c45a3d91db4800a719e798ae72d6
|
|
BLAKE2b-256 checksum How to use checksums |
4af03a80a67e6b8d49692d7da0f1a32f17be1556cd1805a1a5f9d55df45cc68c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / usbizdays-1.0.0-py3-none-any.whl
| Download URL | usbizdays-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64d16b73bca25e0364ce8e8f992b31aa3fa790101eb9a0f692f25cf3a539922a
|
|
BLAKE2b-256 checksum How to use checksums |
16ef953535c785c76387c348ecec656854bcc8ca3283308ca15365c1b1c876fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for usbizdays 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for usbizdays-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.