Home · Blog · Technical and coding
Pair programming interview tips
In a pair programming interview, you work on real-looking code with an engineer from the team, often in your own editor. It's less about puzzles and more about whether they'd enjoy working with you. Here's how to show that.

In short
- Pair programming interviews score collaboration as much as code - treat the interviewer as a teammate.
- Agree on the goal and approach before typing, and keep talking about decisions.
- Ask for input, listen to suggestions, and disagree politely with reasons.
- Write tests or run the code often - small steps, frequently checked.
Practise this free: a mock interview for Coding round (algorithms), scored, with a stronger answer. 3 a month, no card.
Start a mock interviewMore companies now replace or add to algorithm puzzles with pair programming: an engineer from the team joins you for an hour to add a feature, fix a bug or refactor some code. The question they’re answering is simple: would I like to work with this person every day?
That changes what good looks like. Clever code matters less; clear communication, small steps and responding well to input matter more.
How pair programming interviews work
Formats vary, but usually:
- The task is practical: an endpoint, a small feature, a failing test, a refactor.
- The code may already exist, so reading unfamiliar code is part of the test.
- You’re usually the driver (typing) while the interviewer acts as navigator, sometimes switching.
- Tools are realistic: your own editor, a shared repository, internet access.
If the format isn’t clear from the invitation, ask beforehand. It’s a reasonable question and helps you set up.
Before you start typing
- Read the task together and repeat the goal in your own words.
- Explore the code for a few minutes: “Let me find where requests come in and how tests are run.”
- Agree on an approach: “I’ll add the validation in the service layer and write a test for it first. Does that fit how you’d usually do it?”
- Run the existing tests to see the starting point.
While you work
- Talk about decisions, not keystrokes. Our guide on how to think out loud in a coding interview has phrases that work here too.
- Work in small steps and run the code or tests often.
- Ask for input at natural points: “Would you name this differently?” “Is there a helper for this already?”
- Say what you’re looking up when you search documentation.
- Keep it readable. Your partner is reading every line as you write it.
Responding to suggestions
The interviewer will make suggestions, sometimes deliberately to see how you react.
Interviewer: “What if we put this logic in the controller instead?”
You: “We could. My worry is that the same check is needed by the import job, so putting it in the service means both use it. If that’s not a concern here, the controller is simpler. Which would you prefer?”
- Good suggestion: take it and say why it’s better.
- Disagree: explain your reasoning politely, then be open.
- Not sure: try it quickly and compare.
What you want to avoid is silently ignoring suggestions or giving in on everything without thinking.
When things go wrong
- A test fails: read the error out loud and form a hypothesis before changing code.
- You don’t understand the existing code: say so, and read it with them. Navigating unfamiliar code is a real skill they’re looking for.
- You’re stuck: say what you’ve tried. Pairing exists to get unstuck; see also what to do when stuck in a coding interview.
Remote pairing setup
Many pairing interviews happen over video, and a little preparation removes most of the friction:
- Share the right thing. Share one window or the editor rather than your whole screen, and close anything private.
- Make it readable. Increase your editor’s font size so the code is clear on their screen, and turn off distracting extensions.
- Check the tools in advance. If they use a collaborative editor or a specific repository, make sure you can open it and run the tests before the call.
- Use your own environment if allowed. You’ll be faster with your usual shortcuts, and that shows.
- Narrate navigation. “I’m opening the user service now” helps a partner who can’t see where your eyes are.
Have a fallback ready: if screen sharing fails, offer to paste code into a shared document while it’s fixed, and keep talking.
Common mistakes
- Coding silently for long stretches, as if your partner weren’t there.
- Big bang changes: writing 80 lines before running anything.
- Not reading the existing code and duplicating what’s already there.
- Over-apologising for typos and small bugs. Fix them and move on.
- Ignoring tests when the codebase has them.
If you’re the navigator
Some interviews switch roles halfway, and the interviewer types while you guide. Give direction at the level of intent (“let’s add a check for an empty cart before calculating the total”), not individual keystrokes. Watch for bugs as they type, mention them kindly, and keep the bigger plan in mind so the session doesn’t drift.
Wrap up well
In the last minutes, summarise what you did, what’s left and what you’d improve. Then ask about how the team actually pairs: how often, remote or in person, how they review code. Our list of questions to ask in a technical interview has more.
How to practise
Pair with a friend or colleague on small real tasks, ideally in a codebase you don’t know. Try both roles, driver and navigator. Wikipedia’s page on pair programming explains the roles if they’re new to you.
Pair programming often follows a take-home assignment, where you extend your own code. For the rest of the process, see our live coding interview tips and the questions in our full-stack developer and frontend developer guides.
Practise explaining your code out loud, free. Ghostpilot’s mock interviews ask the technical questions for your role and score how clearly you explain your decisions.
3 mock interviews a month are free, with no card needed.
Start freeQuestions
What is a pair programming interview?
A coding session where you and an engineer work on a task together, often in a realistic codebase. One person types (the driver) and both discuss the approach. It tests collaboration and everyday engineering skills.
How is pair programming different from a coding interview?
Coding interviews often use algorithm puzzles and watch you solve them. Pair programming usually involves practical tasks such as adding a feature or fixing a bug, with the interviewer actively working with you.
Can I look things up during a pair programming interview?
Usually yes, as you would at work. Say what you're looking up and why. Ask at the start if you're not sure what's allowed.
What if I disagree with the interviewer's suggestion?
Say so politely and explain your reasoning, then be open to trying their idea. Interviewers often make suggestions to see how you handle them.
Get live help in your next interview
Ghostpilot hears each question and shows an answer from your CV, in a small window above your call. Free to start: 2 live interviews and 3 mock interviews a month, no card needed.



