Timestamp Math Calculator
Add or subtract time from Unix timestamps with seconds to nanoseconds precision. Get ISO 8601, RFC 3339, and MySQL outputs instantly.
Add or subtract time from any timestamp
Calculation Settings
Match the selected precision
Time Adjustment
Add or subtract an interval from a Unix timestamp
What this tool does
Use timestamp arithmetic to derive a cache expiry, a retention cutoff, or a scheduled offset from a known Unix timestamp. Choose the input precision before applying an operation so seconds are not mistaken for milliseconds.
Inputs and limits
Fixed durations and calendar increments answer different questions. Adding seconds advances elapsed time; adding months or years follows calendar arithmetic and can encounter month-end boundaries. Inspect the resulting date before using it as a deadline.
Convert between epoch seconds and datesTime Difference Calculator
Supported operations
Add and subtract operations
Apply a chosen interval to one base timestamp.
Precision selection
Specify seconds, milliseconds, microseconds, or nanoseconds for numeric input.
Calendar and duration units
Choose seconds through years and compare the resulting timestamp with formatted date output.
Timestamp Math Calculator FAQ
Common questions about Timestamp Math Calculator and how to use it.
Is adding one month the same as adding 30 days?
Why select the timestamp precision first?
What inputs does Timestamp Math Calculator need?
Which result does Timestamp Math Calculator calculate?
What is Timestamp Math Calculator useful for?
Need More Help?
Review the answers above or contact us for help with timestamp conversions.
Contact supportRelated Tutorials
Practical guides for working with dates, timezones, and timestamps.