Rob’s Timecode Calculator
Accurately add and subtract video timecodes for any project.
Resulting Timecode
Timecode A Total Frames
128710
Timecode B Total Frames
18135
Result Total Frames
146845
What is Rob’s Timecode Calculator?
Rob’s Timecode Calculator is a specialized tool designed for video editors, post-production professionals, and filmmakers. Its primary function is to perform accurate arithmetic (addition and subtraction) on SMPTE timecodes. Unlike a standard calculator, a timecode calculator understands the complexities of time formats in video, such as hours, minutes, seconds, and frames (HH:MM:SS:FF). It correctly handles calculations across different frame rates, including the critical distinction between non-drop-frame (NDF) and drop-frame (DF) timecodes.
This tool eliminates the manual, error-prone process of calculating video durations, clip lengths, and offsets. Whether you’re timing a broadcast program to fit a specific slot, calculating the total runtime of a sequence, or figuring out the precise start time for a sound effect, this calculator ensures frame-perfect accuracy, which is essential for professional video production.
The Formula and Explanation for Timecode Calculation
Directly adding or subtracting timecode values is impossible because the ‘frames’ unit doesn’t operate on a base-10 system like the other units. The number of frames in a second is determined by the project’s frame rate. To perform calculations, a timecode must first be converted into a single, consistent unit: total frames.
This formula works for non-drop-frame timecode. For drop-frame timecode (like 29.97 FPS), the calculation is more complex to account for the frame numbers that are ‘dropped’ to keep the timecode aligned with real-world time. Once both timecodes are converted to their respective total frames, the addition or subtraction is performed. The resulting total frames are then converted back into the standard HH:MM:SS:FF format.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| HH | Hours | Hours | 00-23 |
| MM | Minutes | Minutes | 00-59 |
| SS | Seconds | Seconds | 00-59 |
| FF | Frames | Frames | 00 to (Frame Rate – 1) |
| FPS | Frames Per Second | Frames/Second | 23.976, 24, 25, 29.97, 30, etc. |
Practical Examples
Example 1: Adding Clips in a Timeline
Imagine you have two video clips. You want to know their total combined duration on a 25 FPS (PAL) timeline.
- Input A (Clip 1 duration): 00:05:45:15
- Input B (Clip 2 duration): 00:12:30:10
- Frame Rate: 25 FPS
- Result: After converting to frames, adding, and converting back, the result is 00:18:16:00.
Example 2: Calculating Remaining Time in a Broadcast
A TV show segment must be exactly 30 minutes long. You have already edited a sequence that runs for 22 minutes, 15 seconds, and 8 frames on a 29.97 DF timeline. How much time do you have left?
- Input A (Total show length): 00:30:00;00
- Input B (Edited sequence length): 00:22:15;08
- Frame Rate: 29.97 FPS (DF)
- Result: After subtraction, you have 00:07:44;22 remaining. Notice the semicolon, indicating drop-frame timecode. For more information, you might want to check out our guide on understanding frame rates.
How to Use This Rob’s Timecode Calculator
Using this calculator is a straightforward process designed to be quick and intuitive for editors.
- Select Frame Rate: First, choose the correct frame rate for your project from the dropdown menu. This is the most critical step for an accurate calculation. Using 29.97 DF for a 30 NDF project will lead to errors.
- Enter Timecode A: Type the first timecode into the “Timecode A” field using the HH:MM:SS:FF format.
- Choose Operation: Select whether you want to add (+) or subtract (-) from the operation dropdown.
- Enter Timecode B: Type the second timecode into the “Timecode B” field.
- Review Results: The calculator updates in real time. The primary result is shown in the large green box, with the total frame counts for each input and the result displayed below. The visual bar chart also updates to reflect the magnitude of the frame counts.
- Reset or Copy: Use the “Reset” button to clear the inputs to their default values, or the “Copy Results” button to copy a detailed summary to your clipboard.
To learn more about video formats, see our article on video compression techniques.
Key Factors That Affect Timecode Calculation
Several factors can influence the outcome of timecode math. Understanding them is key to avoiding errors in post-production.
- Frame Rate: This is the most fundamental factor. The same timecode value represents a different number of total frames at 24 FPS versus 30 FPS.
- Drop-Frame (DF) vs. Non-Drop-Frame (NDF): For frame rates like 29.97 and 59.94, you must use the correct mode. DF timecode periodically skips frame numbers to stay in sync with real-world clocks, essential for broadcasting. Using NDF for a broadcast project will result in a program that is shorter than expected.
- Timecode Format: Ensure your input is always in the format HH:MM:SS:FF. Using a period or semicolon for the final separator is a common convention (e.g., 01:00:00;00 for DF, 01:00:00:00 for NDF), though this calculator handles both.
- Starting Timecode: Be aware if your timeline starts at 01:00:00:00 instead of 00:00:00:00. This is common practice and must be factored into duration calculations.
- Video Standard (NTSC/PAL): Historically, NTSC regions (like North America, Japan) used fractional frame rates (29.97, 59.94), while PAL regions (like Europe, Australia) used whole frame rates (25, 50). This distinction is still critical. Read about the history of NTSC and PAL for more context.
- Negative Results: Subtracting a larger timecode from a smaller one will result in a negative time. This calculator will show this as a negative frame count and a timecode of 00:00:00:00, as negative timecode is not a valid SMPTE standard.
Frequently Asked Questions (FAQ)
What’s the difference between drop-frame (DF) and non-drop-frame (NDF)?
NDF counts every single frame sequentially. At 30 FPS, it counts 30 frames per second. However, the NTSC standard is actually 29.97 FPS. NDF at this rate slowly drifts from real-time. DF corrects this by skipping two frame numbers at the start of every minute, except for every tenth minute. This keeps the timecode accurate over long durations, which is why it’s required for broadcasting.
Why can’t I just subtract the numbers like regular math?
Because the ‘frames’ unit isn’t base-10. For example, at 30 FPS, subtracting 15 frames from a timecode ending in :05 frames requires “borrowing” a full second (30 frames), not 10. The core logic requires converting everything to a single unit (frames) to perform the math correctly.
What does the semicolon (;) mean in timecode?
A semicolon as the final separator (e.g., 00:10:30;15) is the industry-standard convention to indicate that the timecode is drop-frame (DF). A colon (:) indicates non-drop-frame (NDF).
What happens if I enter a frame number higher than my frame rate?
This calculator automatically handles it. For example, if you are at 30 FPS and enter 00:00:00:35, it will correctly interpret this as 1 second and 5 frames, displaying 00:00:01:05.
Why are there so many different frame rates?
Frame rates originated from technical standards related to electricity frequency (60Hz in NTSC regions, 50Hz in PAL regions) and the needs of film production. 24 FPS became the standard for cinema for its balance of smooth motion and film stock cost. For a deep dive, consider reading about audio synchronization methods, which are closely tied to frame rates.
Does this calculator handle multiplication or division?
This version focuses on the most common editor needs: addition and subtraction. While some tools offer multiplication (e.g., to speed up a clip by 2x), it’s a less frequent calculation and requires careful handling of the resulting frame count.
How accurate is this Rob’s Timecode Calculator?
It is frame-accurate. The JavaScript logic correctly implements the industry-standard algorithms for converting between timecode and total frames, including the specific rules for drop-frame calculations. This ensures the results match what you would see in professional editing software like Avid Media Composer or DaVinci Resolve.
Can I use this for audio editing?
Yes. While audio is often measured in samples, when it’s synced to video, its position and duration are referenced using the same SMPTE timecode as the video. This calculator is perfect for timing audio cues, music beds, and sound effects against a video timeline. Our guide to post-production workflows explains this relationship in more detail.
Related Tools and Internal Resources
Expand your knowledge with our other articles and tools for production professionals.
- The Ultimate Guide to Understanding Frame Rates: A complete breakdown of 24, 25, 29.97, 30, and 60 FPS.
- An Introduction to Video Compression: Learn how codecs affect your final product.
- The Modern Post-Production Workflow: From ingest to final delivery, a step-by-step guide.
- NTSC vs. PAL: A Brief History: Understand the historical standards that still influence video today.