Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Days Until End of Month
4
days remaining
Last day of month 30
Total days in month 30

What This Calculator Does

The Days Until End of Month Calculator tells you exactly how many days remain between a given date and the final day of that same month. It's handy for planning monthly deadlines, rent and bill cycles, payroll cut-offs, sales targets, and subscription periods. The tool automatically accounts for months of different lengths (28, 29, 30, or 31 days) and correctly handles leap years for February.

How to Use It

Enter a year, select a month, and type the day of the month you want to measure from. The calculator returns the number of days left until the end of that month, plus the last day's date and the total number of days in the month. By default it uses today's date, so you can instantly see how many days are left in the current month.

The Formula Explained

The math is simple subtraction: $$\text{Days Left} = \text{LastDay}\left(\text{Year},\ \text{Month}\right) - \text{Day}$$. The challenge is knowing the last day. February can have 28 or 29 days; April, June, September and November have 30; the rest have 31. The calculator determines the correct last day for the chosen month and year, then subtracts your selected day.

Calendar month grid with elapsed days greyed out and remaining days highlighted up to the last day
Days left equals the last day of the month minus the current day.

Worked Example

Suppose today is March 10, 2024. March always has 31 days, so the last day is 31. Days left = $$31 - 10 = 21 \text{ days}$$ For February 15, 2024 (a leap year), February has 29 days, so days left = $$29 - 15 = 14 \text{ days}$$

Horizontal timeline bar showing today's position and the gap to month end
A timeline view of the remaining days until month end.

FAQ

Does it count the current day? No. The result is the number of full days after your date up to and including the last day of the month. If you are on the last day, the result is 0.

Does it handle leap years? Yes. February returns 29 days in a leap year and 28 otherwise, so the count is always accurate.

Can I use it for past or future months? Absolutely — just change the year and month fields to any date you like.

Last updated: