Use had been waiting to show how long the wait had lasted by the time the door opened. Here’s a complete example from a fictional scene outside a community hall.
We got to the hall at 9:40, but the door was locked. We had been waiting for twenty minutes when the door opened. The caretaker waved us in.
Start with the door opening at 10:00. That’s the past reference point, the moment in the story you’re looking back from. The wait began at 9:40, so twenty minutes had passed. Build the verb with had + been + the -ing form waiting. We’d been waiting means the same thing. See Oxford’s guide to forming the past perfect continuous.
We were waiting when the door opened also fits the scene. It tells us what we were doing at that moment. If the twenty minutes matter, We had been waiting for twenty minutes looks back over the whole stretch. For more practice showing what was happening at a particular moment, try the past simple and past continuous exercises.
At the community hall. Keep the twenty-minute wait and the door opening. Add one detail from inside the hall. The caretaker started testing the microphone at 9:30 and was still testing it just before he came to the door. He finished setting out all twelve chairs before he opened up.
Fill the gaps using the verbs in brackets. Show how long the wait and the testing had gone on, which job was already complete, and what happened next. Choose from the past perfect continuous, the past perfect simple, and the past simple.
The caretaker’s side of the same morning. The door still opens at 10:00. Look at the caretaker’s half-hour of work, from 9:30 to 10:00, instead of the visitors’ twenty-minute wait. Both sentences can describe that morning.
| Focus on the work in progress | Report the time already worked |
|---|---|
| By the time the door opened, the caretaker had been working in the hall for half an hour. | By the time the door opened, the caretaker had worked in the hall for half an hour. |
Use had been working if you’re explaining what kept him busy before he opened the door. Use had worked if you’re reporting how much work time he’d put in by 10:00. Neither sentence tells us whether his shift ended at ten. If you need to say that a particular job was finished, name the result: By the time the door opened, the caretaker had set out all twelve chairs.
A time phrase can also go with a state, such as knowing someone. When the door opened, I recognized the caretaker. I had known him for years. Use had known here because know describes a relationship, not an activity in progress. The British Council’s past perfect guide explains that state verbs usually don’t take the past perfect continuous.
Ask about the same wait. We started waiting at 9:40, and the door opened at 10:00. A volunteer who arrived later asks about the wait. Put how long / you / had / been / waiting in order, then add when the door opened to finish the question. Then give two full answers. Use for with the length of the wait and since with the time it started.
Question: How long had you been waiting when the door opened?
In the question, put had before you. In the two answers, both time phrases describe the same wait. For twenty minutes measures it, and since 9:40 says when it began. In conversation, We’d been waiting since 9:40 is enough because the question already names the door opening. How long did you wait before the door opened? is also a natural question if you’re asking about the wait as a whole. See Oxford’s reference examples for questions and time phrases.
Keep the same start time and the same opening time. This time, you leave at 9:55, five minutes before the door opens. Write two sentences that give the length of your wait and say when the door finally opened.
We had been waiting for fifteen minutes when we left at 9:55. The door opened five minutes later.
You now count back from when you left at 9:55. We waited for fifteen minutes before we left. The door opened five minutes later. also works. It reports the wait as a whole and uses before to put the events in order. If you want to keep the opening as the reference point, make the gap clear: By the time the door opened, we had already waited fifteen minutes and left.
What would make twenty minutes right again? You’d need to stay until 10:00. The past perfect continuous can also describe an earlier activity that has already stopped when you see its effect. In this example, the rain stopped at 9:50. At 10:00, the caretaker came outside and saw that the pavement was wet. He could say, It had been raining. The times tell us the rain had stopped ten minutes before he saw the wet pavement. The verb form describes the earlier activity and leaves the stopping time to the story.
We encourage you to share this article on Twitter and Facebook. Just click those two links - you'll see why.