acalculator

Days until July 4th

The Fourth of July 2027 is on Sunday, July 4, 2027. The count starts from today’s date; pick another date to count from it instead.

Your numbers

Days until the Fourth of July
278

From September 29, 2026, there are 278 days until the Fourth of July on Sunday, July 4, 2027.

Date
Sunday, July 4, 2027
Day of the week
Sunday
In weeks
39 weeks and 5 days

Answer for the example date Tuesday, September 29, 2026. It changes to today's date when the page loads.

Days until the Fourth of July: 278. From September 29, 2026, there are 278 days until the Fourth of July on Sunday, July 4, 2027.

Where is the Fourth of July on the calendar?

How to calculate

Counts the days from today, or any date you choose, to the next Fourth of July, with its date and day of the week.

Example with the default inputs (Count from September 29, 2026) on the example date Tuesday, September 29, 2026: From September 29, 2026, there are 278 days until the Fourth of July on Sunday, July 4, 2027.

Method: Find the first date of the Fourth of July on or after the start date, then count the days from the start date to it.

  • Independence Day (the Fourth of July) is July 4 every year.
  • Start dates from January 1, 1986 to December 31, 2400 work, because the US federal holiday rules used here start in 1986.
  • The start date itself is not counted: from the day before, the count is 1; on the day itself, it is 0.
  • Dates are calendar days with no time of day, so a time zone or a daylight-saving change never adds or loses a day.
  • When the date falls on a weekend, the US federal day off moves to the Friday before or the Monday after; the count is to the date itself.

Machine-readable copies: Markdown, JSON.

Worked examples

Each example is checked against the calculator on every build.

  1. Count from 2026-01-01 gives Date 2026-07-04, Days until the Fourth of July 184.Source: 5 U.S.C. 6103 (federal holidays), with OPM federal holiday schedules
  2. Count from 2026-07-05 gives Date 2027-07-04, Days until the Fourth of July 364.Source: 5 U.S.C. 6103 (federal holidays), with OPM federal holiday schedules

Other questions people ask

When is the Fourth of July 2027?

The Fourth of July 2027 is on Sunday, July 4, 2027. It falls on a Sunday, so the US federal day off is Monday, July 5, 2027.

When is the Fourth of July 2028?

The Fourth of July 2028 is on Tuesday, July 4, 2028.

How is the date of the Fourth of July set?

Independence Day (the Fourth of July) is July 4 every year. Source: 5 U.S.C. 6103 (federal holidays), with OPM federal holiday schedules.

How are the days until the Fourth of July counted?

From the start date (today, unless you change it) to the date, without counting the start date. The day before, the count is 1; on the day itself, it is 0; the day after, the count moves on to the next Fourth of July.