← Back to Notion formulas
TasksBeginner

Notion Formula for Status from a Due Date

Copy a Notion formula that labels tasks as overdue, due soon, or on track from their due date.

Notion Formula for Status from a Due Date cover

Use case

Show task status from a due date

Properties

Due DateStatus

Use this formula to show a date-based task status while keeping your manual Status property for workflow stages such as In progress or Done.

if(
  prop("Status") == "Done",
  "Done",
  if(
    empty(prop("Due Date")),
    "No due date",
    if(
      prop("Due Date") < today(),
      "Overdue",
      if(dateBetween(prop("Due Date"), today(), "days") <= 3, "Due soon", "On track")
    )
  )
)

What this formula does

The formula checks completion first, then compares the due date with the current date.

ConditionResult
Status is DoneDone
No due dateNo due date
Due date has passedOverdue
Due within 3 daysDue soon
More than 3 days awayOn track

Database setup

Create these properties in your Notion database:

PropertyTypeExample
TaskTitleSend weekly report
Due DateDateJuly 27, 2026
StatusStatus or SelectNot started, In progress, Done
Date StatusFormulaThe formula above

Keep Status as a manual property and name the formula property Date Status so the two types of status stay separate.

Change the due-soon window

Replace 3 with the number of days that fits your workflow:

dateBetween(prop("Due Date"), now(), "days") <= 7

This marks tasks due within a week as Due soon.

Add colors

Use styled text if you want the result to stand out in a table:

if(
  prop("Status") == "Done",
  style("Done", "green"),
  if(
    empty(prop("Due Date")),
    style("No due date", "gray"),
    if(prop("Due Date") < today(), style("Overdue", "red", "b"), style("On track", "green"))
  )
)

Common problems

If completed tasks show as overdue, make sure the completed status is exactly Done or replace it with your own value.

If a task becomes overdue too early, check whether your due date includes a time. This formula uses today() for date-only task planning.

If the formula returns No due date, check that the date property is filled and that the formula uses the correct property name.