Find the Total Length of a Playlist
YouTube shows how many videos a playlist has but not how long it runs. The command yt-dlp --flat-playlist --print duration followed by the playlist's link prints every video's length in seconds, and one more word adds them up. In Vi.ki's test on Nov 28, 2026 it gave 27 hours 59 minutes 36 seconds for MIT's 36-video linear algebra course in under two seconds, with no sign-in and no API key.
To find how long a YouTube playlist runs in total, run yt-dlp --flat-playlist --print duration "https://www.youtube.com/playlist?list=PLAYLIST_ID" and add up the numbers it prints, one length in seconds for each video. YouTube's own playlist page gives the number of videos and no total. On Nov 28, 2026 Vi.ki ran the command, signed out, on MIT OpenCourseWare's public course "MIT 18.06 Linear Algebra, Spring 2005", PLE7DDD91010BC51F8: 36 lines came back in 1.7 seconds and summed to 100,776 seconds, which is 27 hours 59 minutes 36 seconds.
Next: the same command printing IDs instead of lengths, the playlist that holds a whole channel, to total its uploads or how the speed setting cuts the hours.
The whole thing in one line
On Mac or Linux:
yt-dlp --flat-playlist --print duration "https://www.youtube.com/playlist?list=PLAYLIST_ID" | awk '{s+=$1} END {printf "%d videos, %d:%02d:%02d\n", NR, s/3600, s%3600/60, s%60}'
In Windows PowerShell:
$s = (yt-dlp --flat-playlist --print duration "https://www.youtube.com/playlist?list=PLAYLIST_ID" | Measure-Object -Sum).Sum; $t = [TimeSpan]::FromSeconds($s); "{0}:{1:00}:{2:00}" -f [int][Math]::Floor($t.TotalHours), $t.Minutes, $t.Seconds
Both were run on Nov 28, 2026 with yt-dlp 2026.10.26. The first printed 36 videos, 27:59:36, the second 27:59:36. The parts:
| Part | What it does |
|---|---|
--flat-playlist |
Reads the playlist's list of entries without opening each video, so nothing is downloaded |
--print duration |
Prints each entry's length in seconds, one per line |
| The link in quotes | Any link with list= in it; the quotes keep ? and & from being read by the shell |
awk ... or Measure-Object -Sum |
Adds the lines up; the rest only turns seconds into hours, minutes and seconds |
What we measured
| Playlist | Videos | Total | Time taken |
|---|---|---|---|
MIT 18.06 Linear Algebra, Spring 2005 (PLE7DDD91010BC51F8) |
36 | 27:59:36 | 1.7 seconds |
IGN's "Popular videos" list (UULP plus the channel's ID) |
200 | 23:02:59 | 2.2 seconds |
The first total can be checked against the page: the 36 lengths YouTube printed on the playlist page that morning also summed to 100,776 seconds. That check only works for short lists. A playlist page carries the first 100 videos in its code and loads the rest as you scroll, so for IGN's uploads list, which the page said held 20,000 videos, the page gave 100 lengths and the command is the only one of the two that reaches the end.
The MIT course averages 46 minutes 39 seconds a video, by our division. What that means for a plan:
| Speed | Time for all 36 lectures | An hour a day |
|---|---|---|
| 1x | 27:59:36 | 28 days |
| 1.25x | 22:23:41 | 23 days |
| 1.5x | 18:39:44 | 19 days |
| 2x | 13:59:48 | 14 days |
Why YouTube does not just show it
Nothing on the playlist page totals the lengths, which is why the question keeps being asked. Wonderful Devices put it in one sentence in a May 7, 2025 video: "YouTube in itself does not give away that you can see the length of a playlist." YouTube Help's article on playlists covers creating, editing, reordering and deleting them and says nothing about a total running time (Create & manage playlists, read Nov 28, 2026).
Without installing anything
The other route is a playlist length calculator, a web page that takes the playlist's link. In Simple Tech Digital's video of Jun 11, 2022, pasting a link and pressing Get length returned "the number of videos that are in the YouTube playlist", "the average length of the video" and "the total length of the YouTube playlist". Such sites come and go and each sets its own cap on how many videos it reads, so we name none; the check for any of them is the one above, a short playlist whose lengths you can add by hand.
For a playlist of a dozen videos, hand addition from the page is quick enough: each row shows its length on the thumbnail.
What the number leaves out
- Videos the command cannot see. Private and deleted entries have no length. yt-dlp prints
NAfor a field it does not have, andawkcounts that as zero, so the total is of the videos that can still be played. Neither of our two test lists had such an entry, so we have not seen how the PowerShell line treats one. - Live streams that have not happened. A scheduled stream has no length yet.
- Changes after you ran it. A playlist's owner can add or remove videos at any time; the total is a reading, so note the date beside it.
What we think
We think the command is the better habit than a calculator site, for a plain reason: it reads the list from YouTube directly on your own machine, needs no account and no key, and gave the same answer as the page's own figures in our test. The sites are fine for a one-off, and they are what most people will use.
Sources
- Vi.ki's runs of yt-dlp 2026.10.26 and requests to youtube.com/playlist, signed out, about 6:20 AM Dubai time, Nov 28, 2026
- MIT 18.06 Linear Algebra, Spring 2005, MIT OpenCourseWare's playlist at
youtube.com/playlist?list=PLE7DDD91010BC51F8(read Nov 28, 2026) - yt-dlp, the program's own page, for
--flat-playlist,--printand theNAplaceholder - Create & manage playlists, YouTube Help (read Nov 28, 2026)
- How to Find The Length of a YouTube Playlist, Wonderful Devices, May 7, 2025 (video)
- How To View Youtube Playlist Length | Tutorial, Simple Tech Digital, Jun 11, 2022 (video)
Moments
How to Find The Length of a YouTube Playlist
Wonderful Devices
How To View Youtube Playlist Length | Tutorial
Simple Tech Digital
See also
-
Get Every Video ID From a PlaylistThe command yt-dlp --flat-playlist --print id followed by the playlist's address lists every video ID in a YouTube playlist, one per line, without downloading any video; on Nov 22, 2026 it listed all 668 IDs of a public playlist in about 5 seconds, where the playlist's RSS feed gave 15 and its page 100.
-
Play All Videos From a ChannelTo play every video a YouTube channel has uploaded, take its channel ID, change the leading UC to UU and open youtube.com/playlist?list= followed by that code. UULF lists only the long videos, UUSH only the Shorts and UULV only the live streams.
-
Playback SpeedChange YouTube's speed in the player's Settings gear under Playback speed, from 0.25x to 2x for everyone (up to 4x with YouTube Premium), press and hold the video for 2x, or use Shift + > and Shift + < on a keyboard.
-
Block a Video by CountryAn ordinary YouTube channel cannot block its own video in chosen countries. The setting exists only in Studio Content Manager, the tool of networks and rights holders, and it is built for licensing, not for hiding from an audience.
-
Channel Membership Join LinkA YouTube channel's membership link is its address with /join added, such as youtube.com/@LofiGirl/join, which YouTube Help says links "directly to your membership window". It works after a handle or a channel ID; in Vi.ki's test on Nov 19, 2026 a channel without memberships answered the same address with its plain channel page.
-
Channel RSS FeedEvery YouTube channel has an RSS feed at youtube.com/feeds/videos.xml?channel_id= plus the channel ID. It lists the 15 newest uploads, Shorts included; in Vi.ki's test on Nov 13, 2026, swapping in playlist_id=UULF plus the rest of the ID gave a feed of long videos only.