How long should you train for a marathon?
Marathon6 min readUpdated November 19, 2026
Allow at least 12 weeks if you already run around 40 km (25 miles) a week or more, and 16 to 24 weeks if you run less. If you can't run 30 minutes without stopping yet, add about 9 weeks of run/walk before the marathon plan starts.
Most runners need somewhere between 12 and 24 weeks to train for a marathon. Where you land in that range depends on one number more than any other: how far you run each week right now. A runner already doing 45 km (28 miles) a week has a short gap to close. A runner doing 20 km (12 miles) a week has a long one, and the safe way to close it is slowly.
Here’s how to work out your number.
The short version
| Where you are now | Suggested plan length |
|---|---|
| Can’t run 30 minutes non-stop yet | About 9 weeks of run/walk, then a full marathon plan (see below) |
| Running about 20 km (12 miles) a week | 20 to 26 weeks |
| Running about 30 km (19 miles) a week | 14 to 19 weeks |
| Running about 40 km (25 miles) a week or more | 12 to 13 weeks |
Twelve weeks is the floor. Trackstar warns you if you build a marathon plan shorter than that, because the last 3 weeks are a taper and that leaves only 9 weeks to build. The ranges above come from the worked examples further down: the lower figure follows the growth limits for regular runners, the higher one the more cautious limits for beginners.
Why your weekly distance decides the length
A good plan raises your weekly distance gradually. In Trackstar, each building week can grow by at most 10% (8% for beginners). After every 3 building weeks comes a lighter step-back week at 80% (after every 2 for beginners). Those limits keep the increase manageable for your legs.
So the plan length is mostly the time it takes to get from what you run now to what the plan peaks at, plus the taper. For a beginner marathon, Trackstar’s peak is around 60 km (37 miles) a week. That figure is set so the long run can reach the lengths that published beginner plans use.
A worked example
Say you’re a beginner running 25 km (16 miles) a week, and your plan builds toward about 60 km (37 miles). With 8% increases and a step-back after every 2 building weeks, it looks like this:
| Week | Distance | Type |
|---|---|---|
| 1 | 25 km | Building |
| 2 | 27 km | Building |
| 3 | 22 km | Step-back |
| 4 | 29 km | Building |
| 5 | 31 km | Building |
| 6 | 25 km | Step-back |
| 7 | 34 km | Building |
| 8 | 37 km | Building |
| 9 | 29 km | Step-back |
| 10 | 40 km | Building |
| 11 | 43 km | Building |
| 12 | 34 km | Step-back |
| 13 | 46 km | Building |
| 14 | 50 km | Building |
| 15 | 40 km | Step-back |
| 16 | 54 km | Building |
| 17 | 58 km | Building |
| 18 | 47 km | Step-back |
| 19 | 60 km | Building |
| 20 | 45 km | Taper (75%) |
| 21 | 36 km | Taper (60%) |
| 22 | 24 km | Race week (40%) |
That’s 22 weeks from 25 km a week to race day without breaking the limits. Run the same sums for other starting points and you get this:
| Weekly distance now | Beginner limits | Regular limits |
|---|---|---|
| 20 km (12 miles) | 26 weeks | 20 weeks |
| 30 km (19 miles) | 19 weeks | 14 weeks |
| 40 km (25 miles) | 13 weeks | 12 weeks (the minimum) |
| 50 km (31 miles) | 12 weeks (the minimum) | 12 weeks (the minimum) |
Your own plan will differ. Its peak depends on your goal and experience, and on the days you can run. Treat these as an illustration of how the starting point drives the length, not a prescription.
What happens in those weeks
A marathon plan isn’t just “more running each week”. Trackstar splits the weeks into four phases:
- Base: mostly easy running to raise your weekly distance, with one threshold or hill session a week (none for beginners).
- Build: about a third of the weeks before the taper. Intervals and threshold runs join the long run, two sessions a week if you run 4 or more days.
- Peak: about a fifth of the weeks before the taper. Long runs reach their longest, and for runners who aren’t beginners, the long run can finish with up to 40% at marathon pace.
- Taper: the last 3 weeks, at about 75%, 60% and then 40% of your last full week, so you arrive at the start line fresh.
A longer plan mostly means a longer base phase. That’s why 20 weeks isn’t “too much”: the extra time is easy running that makes the harder weeks later on feel manageable.
The long run takes time to build
For the marathon, the long run is the key session. In Trackstar it’s usually about 42% of your week, and it can reach 50% if you run only a few days. It’s capped at 3 hours, however fast you run.
There’s also a rule that no run is more than 10% longer than your longest run of the previous few weeks. So if your longest recent run is 10 km (6 miles), you can’t jump to a 20 km (12 mile) long run next weekend. It takes a run of steady increases, with step-back weeks in between. That’s often what makes a short plan feel rushed: the weekly distance might fit, but the long run doesn’t have room to grow.
How many days a week you run matters too
More run days let the plan spread the distance into safer, shorter runs. Trackstar plans marathons on as few as 3 run days, but it warns you when your goal needs more:
| Marathon goal | Run days it warns below |
|---|---|
| Finishing | 3 |
| 4:15 or faster | 4 |
| 3:30 or faster | 5 |
| 3:00 or faster | 6 |
Low weekly distance also affects race-time predictions. For the marathon, Trackstar adds up to 8% to its predicted time when you run less than 60 km (37 miles) a week, because prediction formulas tend to be too optimistic for low-mileage runners. If you want a time goal rather than a finish, a longer plan that lets your weekly distance grow is usually the better choice.
If you’re starting from zero
If you can’t run 30 minutes without stopping yet, don’t start a marathon plan straight away. Trackstar starts new runners with run/walk: short running intervals with walk breaks, stepping up from 1 minute of running at a time to 30 minutes non-stop over about 9 weeks, with three sessions a week. The normal plan then begins from three 30-minute runs a week, with the beginner growth limits.
Add those 9 weeks to the beginner column above and a first marathon from scratch takes well over 30 weeks. If your race is sooner than that, a half marathon first is a sensible stepping stone. Our guide on how long to train for a half marathon covers that plan.
If you miss training along the way
Long plans almost always include a missed week or two. Trackstar never tries to make up lost training. After 7 to 13 days without a run, volume restarts at 80% of your last building week. After 14 to 27 days, 60%. Then it builds again by the usual limits. A plan with a few spare weeks absorbs a cold or a holiday far better than one that was already as short as possible. For any injury, pain or illness, check with a doctor or physio before you start running again.
How Trackstar sets the length for you
Trackstar is a personalized running planner. You enter your race date, how much you run now and the days you can run, and it fits the phases, the 10% limit and the step-back weeks into the time you have. If you connect Apple Health, it checks your answers against your last 6 weeks of runs, so a plan doesn’t start from a weekly distance you aren’t actually running. See how plans are built or find a marathon training plan for your race.
Frequently asked questions
Can I train for a marathon in 12 weeks?
Yes, if you already run regularly and your weekly distance is close to what the plan peaks at. Twelve weeks is the shortest marathon plan Trackstar recommends, and the last 3 of those weeks are a taper, so the real building happens in 9 weeks.
How long does it take to train for a first marathon?
It depends on how much you run now. In Trackstar's rules, a beginner running 25 km (16 miles) a week needs about 22 weeks to build to a 60 km (37 mile) peak and taper. A beginner already at 40 km (25 miles) a week needs about 13.
Is 20 weeks too long to train for a marathon?
No. A longer plan isn't harder, it's more gradual. The extra weeks go into easy base running, so your weekly distance can grow in small steps before the faster sessions start.
How long is the taper before a marathon?
Trackstar uses a 3-week marathon taper: about 75% of your last full week, then 60%, then 40% in race week.
How many days a week should I run for a marathon?
Three is the minimum Trackstar plans for. Faster goals need more: it warns below 4 run days for a 4:15 goal or faster, below 5 for 3:30 and below 6 for 3:00.
Get your plan when Trackstar launches
Trackstar comes to the App Store and Google Play in early January 2027. Join the waitlist and get:
- Free betaFirst 100 on the list
- $39.99 first year
$59.99Code at launch - Nothing to pay nowOnly if you pick a plan later
The beta is limited to the first 100 runners.
More guides
Heart rate zones for running: how to set them and use them
Most runners use five heart rate zones. With the simplest method, zone 2 starts at 60% of your maximum heart…
Marathon training plan for beginners: what the weeks look like
A beginner marathon plan usually runs 16 to 20 weeks on 3 to 4 run days, building from about 25 km (15 miles)…
How long should my long run be?
For most runners the long run is about 30 to 42% of the week's distance, depending on the race, and no more…
What is easy pace in running, and how slow should it be?
Easy pace is a relaxed effort where you can talk in full sentences. Using the Daniels and Gilbert equations…