If you've opened the Next.js documentation recently, you've probably noticed that there are two ways to do almost everything. There's the Pages Router, which has been around for years, and the App Router, which is newer and is where most of the framework's recent attention has gone. Tutorials mix the two, Stack Overflow answers mix the two, and it's easy to end up with code that follows one style while the docs you're reading follow the other.
That leads to a very practical question. If you're starting a new project, which one should you use? And if you already have a Pages Router app, do you need to move? The answer isn't "always switch" or "never switch." It depends on what you're building and how your team works, so let's break down what actually changed.
The basic difference
The Pages Router uses a pages/ folder. Each file in it becomes a route, and when you need data, you use special functions like getStaticProps or getServerSideProps that run before the page renders. The components themselves are regular React components that run in the browser.
The App Router uses an app/ folder and is built on React Server Components. Components are rendered on the server by default, which means they can fetch data directly, and they don't add their own JavaScript to what the browser has to download. When you need interactivity, like a button that updates state, you mark that component as a client component.
If that sounds like a big mental shift, it is. The folder names are the easy part. The real change is where your code runs.
Layouts
One of the nicest improvements in the App Router is how it handles layouts. You can nest layouts so that, for example, a dashboard has its own sidebar that stays in place while the content inside changes. Those layouts don't re-render or lose their state when you move between pages inside them.
In the Pages Router, you can get similar results, but you usually need a custom pattern, like a layout wrapper per page. It works, but it takes more setup and is easier to get wrong.
Data fetching
In the Pages Router, data fetching is tied to the page through dedicated functions. You fetch data at the page level, then pass it down as props. It's explicit and easy to follow, but it can get awkward when a deeply nested component needs data and you have to pass it through several layers.
In the App Router, a server component can simply fetch the data it needs, right where it's used. This tends to feel more natural, since the data lives next to the part of the UI that uses it. The trade-off is that you have to understand how caching and rendering behave, and those defaults have changed between Next.js versions. Always check the documentation for the version you're using instead of relying on older articles.
Loading states, errors, and streaming
The App Router comes with conventions for loading and error states. You can add a loading file that shows while content is being prepared, and an error file to handle failures for a section of the page. It also supports streaming, which means parts of a page can show up as they become ready, instead of waiting for everything.
That can make pages feel faster, especially when one slow piece of data would otherwise hold up the whole screen. With the Pages Router, you can build loading states yourself, but you don't get this built-in structure.
Mutations and forms
For changing data, the App Router introduced server actions, which let you call server-side functions directly from forms and components. It simplifies a lot of common flows, like submitting a form, because you don't have to build a separate API endpoint for every small action.
With the Pages Router, the traditional way is to create API routes and call them from the client. That approach is still completely valid, and many teams prefer the clear separation it gives.
Things to consider before choosing
A few practical points are worth thinking about.
The learning curve. Server and client component boundaries take time to understand. If your team is new to this, plan for some experimentation.
Library compatibility. Some libraries rely on browser features or React hooks, so they need to be wrapped in a client component. Most popular libraries have adapted, but it's something you'll run into.
Caching. Caching behavior in the App Router has evolved, and what you read in older posts may not match current behavior. Treat the docs for your version as the source of truth.
Your team's experience. Years of Pages Router experience carry over only partly. That's not a dealbreaker, but it means a slower start.
If you're migrating
Here's the good news. You don't have to rewrite everything at once, because both routers can live in the same project. That makes a gradual migration realistic.
A sensible approach looks like this. First, update to a recent version of Next.js so you're working with current behavior. Then move shared layouts and simple, mostly static pages into the app/ folder. After that, migrate data fetching page by page, testing each route as you go. Pay special attention to SEO details like metadata and redirects, since those are easy to lose in translation. Only retire the old pages once you've confirmed the new ones behave the same.
Doing it in small steps also gives you an exit. If something turns out to be more complicated than expected, you can pause without breaking the whole site.
Do you actually need to migrate?
Not necessarily. The Pages Router isn't going away overnight, and a stable app that does its job well doesn't need a rewrite just because something newer exists. Migration takes time and carries some risk, and the benefits need to be worth it for your project.
On the other hand, for new projects, many teams start with the App Router since it reflects where the framework is heading and you won't have to migrate later. If you're building something small or experimenting, either choice is fine. If you're building something you expect to maintain for years, it's worth leaning toward the newer approach.
A small example of what migration feels like
Say you have a marketing site with a home page, a blog, and a pricing page, built with the Pages Router. You decide to try the App Router, and you start with the blog because it's mostly content and has a clear shape.
You create the app/blog folder, add a layout with the shared header, and move the list page and the article page across. Instead of getStaticProps, the article page fetches its content right inside the component. You add the metadata for titles and descriptions, then compare the rendered HTML against the old version to make sure nothing important disappeared. Once the new pages look and behave the same, you remove the old ones and set up redirects if any URLs changed.
That entire process is a small, low-risk project, and by the end you know how your team feels about the new model. If it clicks, move on to the next section. If it doesn't, you've lost a day, not a quarter.
Mistakes people commonly make
A few patterns come up again and again.
Marking everything as a client component. When something fails because it uses a hook, it's tempting to put the client directive at the top of the file and move on. Do that too often and you lose most of the benefits of the new model. Keep the interactive parts small.
Mixing old and new advice. A tutorial written for the Pages Router won't always translate directly, and the same goes the other way. When something behaves strangely, check which router the article was written for.
Forgetting SEO details during migration. Titles, descriptions, canonical tags, and redirects are easy to overlook when you're focused on getting pages to render. Make a checklist before you start and test against it afterward.
Migrating everything at once. Because both routers can coexist, there's no reason to rush. Small steps are easier to test and easier to undo.
Wrapping up
The App Router offers more flexibility with layouts, streaming, and server-side rendering, while the Pages Router offers familiarity and stability. Neither one is a mistake. The right choice depends on how old your project is, how comfortable your team is with the newer model, and what you need from the framework. If you're unsure, start with a small section of your app, try the new approach there, and see how it feels before committing to anything bigger.