Treadmill Charts for Running Paces

I find it hard to pace myself on the road when doing interval workouts. The GPS apps aren’t good enough to maintain a steady pace at the goal so I always end up running too fast at the beginning then die at the end. I’ve found it easier to do these on the treadmill at the gym. The only problem is that it’s hard for me to convert between the paces I want to run and the miles per hour speed that are supplied by the treadmills. I wrote a function to provide these figures.

It’s actually not that hard since minutes per mile is easily converted to miles per hour. Just divide 60 by the minutes per mile and you get the speed in MPH.

sec_to_min <- function(m) {
  seconds <- round(m%%60, 1)
  minutes <- m%/%60
  if(seconds<10) {
    seconds <- paste0("0", seconds)
  }
  out <- paste0(minutes, ":", seconds)
  return(out)
}

x <- seq(300, 720, 6)

mph <- seq(12, 5, -0.1)
min_per_mile <- sapply(3600 / mph, sec_to_min)

min_per_distance <- function(speed, distance) {
  # distance in meters
  # speed in mph
  # 1609 meters per mile
  out <- sec_to_min((distance / 1609.34) / speed * 3600)
  return(out)
}

mp200 <- sapply(mph, function(x) min_per_distance(x, 200))
mp400 <- sapply(mph, function(x) min_per_distance(x, 400))
mp600 <- sapply(mph, function(x) min_per_distance(x, 600))
mp800 <- sapply(mph, function(x) min_per_distance(x, 800))
mp1000 <- sapply(mph, function(x) min_per_distance(x, 1000))
mp1200 <- sapply(mph, function(x) min_per_distance(x, 1200))
pacetable <- as.data.frame(cbind(mph, min_per_mile, mp200, mp400, mp600, mp800, mp1000, mp1200))
knitr::kable(pacetable)
mph min_per_mile mp200 mp400 mp600 mp800 mp1000 mp1200
12 5:00 0:37.3 1:14.6 1:51.8 2:29.1 3:06.4 3:43.7
11.9 5:02.5 0:37.6 1:15.2 1:52.8 2:30.4 3:08 3:45.6
11.8 5:05.1 0:37.9 1:15.8 1:53.7 2:31.7 3:09.6 3:47.5
11.7 5:07.7 0:38.2 1:16.5 1:54.7 2:33 3:11.2 3:49.4
11.6 5:10.3 0:38.6 1:17.1 1:55.7 2:34.3 3:12.8 3:51.4
11.5 5:13 0:38.9 1:17.8 1:56.7 2:35.6 3:14.5 3:53.4
11.4 5:15.8 0:39.2 1:18.5 1:57.7 2:37 3:16.2 3:55.5
11.3 5:18.6 0:39.6 1:19.2 1:58.8 2:38.4 3:18 3:57.6
11.2 5:21.4 0:39.9 1:19.9 1:59.8 2:39.8 3:19.7 3:59.7
11.1 5:24.3 0:40.3 1:20.6 2:00.9 2:41.2 3:21.5 4:01.8
11 5:27.3 0:40.7 1:21.3 2:02 2:42.7 3:23.4 4:04
10.9 5:30.3 0:41 1:22.1 2:03.1 2:44.2 3:25.2 4:06.3
10.8 5:33.3 0:41.4 1:22.8 2:04.3 2:45.7 3:27.1 4:08.5
10.7 5:36.4 0:41.8 1:23.6 2:05.4 2:47.2 3:29.1 4:10.9
10.6 5:39.6 0:42.2 1:24.4 2:06.6 2:48.8 3:31 4:13.2
10.5 5:42.9 0:42.6 1:25.2 2:07.8 2:50.4 3:33 4:15.7
10.4 5:46.2 0:43 1:26 2:09.1 2:52.1 3:35.1 4:18.1
10.3 5:49.5 0:43.4 1:26.9 2:10.3 2:53.7 3:37.2 4:20.6
10.2 5:52.9 0:43.9 1:27.7 2:11.6 2:55.4 3:39.3 4:23.2
10.1 5:56.4 0:44.3 1:28.6 2:12.9 2:57.2 3:41.5 4:25.8
10 6:00 0:44.7 1:29.5 2:14.2 2:59 3:43.7 4:28.4
9.9 6:03.6 0:45.2 1:30.4 2:15.6 3:00.8 3:46 4:31.1
9.8 6:07.3 0:45.7 1:31.3 2:17 3:02.6 3:48.3 4:33.9
9.7 6:11.1 0:46.1 1:32.2 2:18.4 3:04.5 3:50.6 4:36.7
9.6 6:15 0:46.6 1:33.2 2:19.8 3:06.4 3:53 4:39.6
9.5 6:18.9 0:47.1 1:34.2 2:21.3 3:08.4 3:55.5 4:42.6
9.4 6:23 0:47.6 1:35.2 2:22.8 3:10.4 3:58 4:45.6
9.3 6:27.1 0:48.1 1:36.2 2:24.3 3:12.4 4:00.5 4:48.6
9.2 6:31.3 0:48.6 1:37.3 2:25.9 3:14.5 4:03.1 4:51.8
9.1 6:35.6 0:49.2 1:38.3 2:27.5 3:16.7 4:05.8 4:55
9 6:40 0:49.7 1:39.4 2:29.1 3:18.8 4:08.5 4:58.3
8.9 6:44.5 0:50.3 1:40.5 2:30.8 3:21.1 4:11.3 5:01.6
8.8 6:49.1 0:50.8 1:41.7 2:32.5 3:23.4 4:14.2 5:05
8.7 6:53.8 0:51.4 1:42.8 2:34.3 3:25.7 4:17.1 5:08.5
8.6 6:58.6 0:52 1:44 2:36.1 3:28.1 4:20.1 5:12.1
8.5 7:03.5 0:52.6 1:45.3 2:37.9 3:30.5 4:23.2 5:15.8
8.4 7:08.6 0:53.3 1:46.5 2:39.8 3:33 4:26.3 5:19.6
8.3 7:13.7 0:53.9 1:47.8 2:41.7 3:35.6 4:29.5 5:23.4
8.2 7:19 0:54.6 1:49.1 2:43.7 3:38.2 4:32.8 5:27.4
8.1 7:24.4 0:55.2 1:50.5 2:45.7 3:40.9 4:36.2 5:31.4
8 7:30 0:55.9 1:51.8 2:47.8 3:43.7 4:39.6 5:35.5
7.9 7:35.7 0:56.6 1:53.3 2:49.9 3:46.5 4:43.2 5:39.8
7.8 7:41.5 0:57.4 1:54.7 2:52.1 3:49.4 4:46.8 5:44.1
7.7 7:47.5 0:58.1 1:56.2 2:54.3 3:52.4 4:50.5 5:48.6
7.6 7:53.7 0:58.9 1:57.7 2:56.6 3:55.5 4:54.3 5:53.2
7.5 8:00 0:59.7 1:59.3 2:59 3:58.6 4:58.3 5:57.9
7.4 8:06.5 1:00.5 2:00.9 3:01.4 4:01.8 5:02.3 6:02.7
7.3 8:13.2 1:01.3 2:02.6 3:03.9 4:05.1 5:06.4 6:07.7
7.2 8:20 1:02.1 2:04.3 3:06.4 4:08.5 5:10.7 6:12.8
7.1 8:27 1:03 2:06 3:09 4:12 5:15.1 6:18.1
7 8:34.3 1:03.9 2:07.8 3:11.7 4:15.7 5:19.6 6:23.5
6.9 8:41.7 1:04.8 2:09.7 3:14.5 4:19.4 5:24.2 6:29
6.8 8:49.4 1:05.8 2:11.6 3:17.4 4:23.2 5:29 6:34.8
6.7 8:57.3 1:06.8 2:13.5 3:20.3 4:27.1 5:33.9 6:40.6
6.6 9:05.5 1:07.8 2:15.6 3:23.4 4:31.1 5:38.9 6:46.7
6.5 9:13.8 1:08.8 2:17.7 3:26.5 4:35.3 5:44.1 6:53
6.4 9:22.5 1:09.9 2:19.8 3:29.7 4:39.6 5:49.5 6:59.4
6.3 9:31.4 1:11 2:22 3:33 4:44.1 5:55.1 7:06.1
6.2 9:40.6 1:12.2 2:24.3 3:36.5 4:48.6 6:00.8 7:13
6.1 9:50.2 1:13.3 2:26.7 3:40 4:53.4 6:06.7 7:20.1
6 10:00 1:14.6 2:29.1 3:43.7 4:58.3 6:12.8 7:27.4
5.9 10:10.2 1:15.8 2:31.7 3:47.5 5:03.3 6:19.1 7:35
5.8 10:20.7 1:17.1 2:34.3 3:51.4 5:08.5 6:25.7 7:42.8
5.7 10:31.6 1:18.5 2:37 3:55.5 5:14 6:32.4 7:50.9
5.6 10:42.9 1:19.9 2:39.8 3:59.7 5:19.6 6:39.5 7:59.3
5.5 10:54.5 1:21.3 2:42.7 4:04 5:25.4 6:46.7 8:08.1
5.4 11:06.7 1:22.8 2:45.7 4:08.5 5:31.4 6:54.2 8:17.1
5.3 11:19.2 1:24.4 2:48.8 4:13.2 5:37.7 7:02.1 8:26.5
5.2 11:32.3 1:26 2:52.1 4:18.1 5:44.1 7:10.2 8:36.2
5.1 11:45.9 1:27.7 2:55.4 4:23.2 5:50.9 7:18.6 8:46.3
5 12:00 1:29.5 2:59 4:28.4 5:57.9 7:27.4 8:56.9