Timecode (Frame) Calculator

Timecode (Frame) Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

N=((60h+m)·60+s)·30+f−2(T−⌊T10⌋)N = \left(\,(60h+m)\cdot 60 + s\,\right)\cdot 30 + f \;-\; 2\!\left(T - \left\lfloor \tfrac{T}{10} \right\rfloor\right)
Show calculation steps (1)
  1. Combine the Two Timecodes

    Ntotal=N1±N2(±=Operation)N_{total} = {N_1} \;\pm\; {N_2} \qquad (\,\pm = \text{Operation}\,)

    TC1 and TC2 each convert to frame counts N1 and N2 (using the rule above). op = +1 for add, -1 for subtract. The total frames are re-expanded into the result h:m:s:f.

Usage stats

Advertisement

Results

New timecode
02 h 01 m 14 s 13 f
29.97 DF
= frame count 218,015 f
Standard 29.97 DF

Report an error on this page

What is the Timecode (Frame) Calculator?

This tool adds or subtracts two SMPTE timecodes in the standard HH:MM:SS:FF format used throughout video and film production. It works at four common standards: 30 fps and 60 fps non-drop-frame (NDF), and 29.97 fps and 59.94 fps drop-frame (DF). It returns both the resulting timecode and the equivalent total frame count, so you can verify durations, offsets and edit points exactly.

SMPTE timecode label broken into hours, minutes, seconds and frames fields
A SMPTE timecode is made of four fields: hours, minutes, seconds and frames.

How to use it

Pick a frame unit, enter your first timecode, choose Add or Subtract, then enter the second timecode. The calculator converts each timecode into an absolute frame number, performs the arithmetic, and rebuilds the result into a clean timecode. If a subtraction goes below zero, the result is shown with a leading minus and the magnitude as a timecode. Hours accumulate freely (no 24-hour rollover) so the tool reflects elapsed duration, which is what editors usually want when summing clip lengths.

The formula explained

For non-drop-frame, $$N = \left(\,(60h+m)\cdot 60 + s\,\right)\cdot D + f$$ where \(D\) is the nominal frame counter (30 or 60). Drop-frame keeps the integer counter at 30 or 60 but skips certain frame numbers so the timecode tracks real wall-clock time. At every minute boundary except multiples of ten, the first 2 frame numbers (4 at 60 fps) are dropped. The dropped count is subtracted on conversion and added back when rebuilding the timecode.

Advertisement
Diagram converting timecode fields into a single total frame count
The formula collapses hours, minutes, seconds and frames into one total frame number \(N\).

Worked example

At 30 fps NDF, TC1 = 01:50:38:25 gives $$n_1 = (110 \times 60 + 38) \times 30 + 25 = 199165.$$ TC2 = 00:10:35:16 gives $$n_2 = (10 \times 60 + 35) \times 30 + 16 = 19066.$$ Adding: 218231 frames, which converts to 02:01:14:11.

Frame Rate and Drop-Frame Reference

SMPTE timecode counts frames using a whole-number nominal base (30 or 60), but NTSC-derived video actually runs at 1000/1001 of that rate. Drop-frame (DF) counting skips certain frame numbers (no pictures are removed) so the timecode stays close to wall-clock time. The 29.97 and 59.94 fps rates come from the NTSC-derived standards.

Format Exact rate (fps) Nominal counter base Frame numbers dropped per minute (except every 10th minute) Frames per hour of timecode Drift from wall-clock time
30 NDF 30 30 0 108000 None (true 30 fps)
29.97 DF 30000/1001 ≈ 29.97003 30 2 107892 About 3.6 milliseconds per hour
60 NDF 60 60 0 216000 None (true 60 fps)
59.94 DF 60000/1001 ≈ 59.94006 60 4 215784 About 3.6 milliseconds per hour

If non-drop-frame (NDF) timecode is used with 29.97 fps material, the counter assumes 30 frames per second while real frames arrive slightly slower. One hour of timecode (108000 frames) then lasts 108000 × 1001/30000 = 3603.6 seconds, so the timecode runs about 3.6 seconds per hour behind the wall clock. The same 3.6 s/hour applies to 59.94 fps material counted as 60 NDF.

Drop-frame is defined only for 29.97 and 59.94 fps. 30 and 60 fps are always non-drop.

Drop-Frame Conversion Step by Step

Let h, m, s, f be the timecode fields, D the nominal base (30 or 60) and \(d\) the number of frame numbers dropped per minute (2 at 29.97, 4 at 59.94).

Timecode to frame number

  1. Compute total minutes: \(T = 60h + m\).
  2. Compute the non-drop-style count: \(N_{ndf} = ((60h+m)\cdot 60 + s)\cdot D + f\).
  3. Compute the dropped numbers: \(\text{dropped} = d\,(T - \lfloor T/10 \rfloor)\). This counts every minute except those divisible by 10.
  4. Frame number: \(N = N_{ndf} - \text{dropped}\).

Example (29.97 DF), 01:00:00;02: \(T = 60\), \(N_{ndf} = (3600 + 0)\cdot 30 + 2 = 108002\), dropped \(= 2\,(60 - 6) = 108\), so \(N = 108002 - 108 = 107894\).

Frame number to timecode (reverse)

  1. Divide the frame number into 10-minute blocks. One block holds 17982 frames at 29.97 fps (18000 − 18) or 35964 frames at 59.94 fps (36000 − 36). Let \(B = \lfloor N / \text{block} \rfloor\) and \(M = N \bmod \text{block}\).
  2. Add back the dropped numbers for all full blocks: 18 per block at 29.97, 36 per block at 59.94.
  3. For the remainder \(M\), the first minute of a block is complete (1800 frames at 29.97, 3600 at 59.94). Each later minute is 2 (or 4) numbers shorter, so at 29.97 add \(2\lfloor (M-2)/1798 \rfloor\) when \(M \ge 2\), and at 59.94 add \(4\lfloor (M-4)/3596 \rfloor\) when \(M \ge 4\).
  4. Convert the adjusted count to h, m, s, f with ordinary base-30 (or base-60) arithmetic.

Check (29.97 DF), N = 107894: \(B = \lfloor 107894/17982 \rfloor = 6\), \(M = 2\). Adjusted count \(= 107894 + 18\cdot 6 + 2\lfloor 0/1798 \rfloor = 108002\). Then 108002 = 3600 s × 30 + 2, which is 01:00:00;02.

Separator convention

Drop-frame timecode is written with a semicolon (or sometimes a period) before the frames field, for example 01:00:00;02. Non-drop-frame timecode uses a colon, for example 01:00:00:02. The separator is only a label; the frame count is determined by the selected mode.

To add or subtract two timecodes, convert each to a frame number, add or subtract the numbers, then convert the result back to timecode with the same mode.

Advertisement

Timecode Glossary

SMPTE timecode
A frame-accurate labeling standard from the Society of Motion Picture and Television Engineers. It gives every frame of audio or video a unique address.
HH:MM:SS:FF
The timecode format: hours, minutes, seconds and frames. The frames field runs from 0 to one less than the nominal frame rate (0–29 at 30 fps, 0–59 at 60 fps).
NDF (non-drop-frame)
Counting mode where every frame number is used. It matches real time only when the true rate is exactly 30 or 60 fps.
DF (drop-frame)
Counting mode for 29.97 and 59.94 fps that skips the first 2 (or 4) frame numbers of each minute, except minutes divisible by 10, to keep timecode close to wall-clock time.
Nominal frame rate vs actual rate
The nominal rate (30 or 60) is the whole-number base used for counting. The actual rate of NTSC-derived video is 30000/1001 (≈29.97) or 60000/1001 (≈59.94) frames per second.
Frame count
The total number of frames since 00:00:00:00. It is the unambiguous value that timecode arithmetic is performed on.
Dropped frame numbers
Labels that are skipped in the count, such as 00 and 01 at the start of most minutes at 29.97 DF. No actual picture frames are discarded.
Rollover vs elapsed duration
Timecode as a clock position wraps around after 23:59:59:29 (or the equivalent last frame), returning to 00:00:00:00 at 24 hours. An elapsed duration is a length of time and can exceed 24 hours, so it should be interpreted differently from a clock position.

FAQ

What is drop-frame? A counting trick for 29.97/59.94 fps that skips frame numbers (not real frames) so a one-hour timecode equals about one real hour.

Why is the frame field under 30 even at 29.97? The integer counter runs at the nominal rate (30); the .97 only affects which numbers are dropped.

Can the result be negative? Yes — subtracting a larger timecode shows a negative frame count and a minus-prefixed timecode.

Last updated:

Most popular in Time and Date

View all Time and Date calculators