Past Perfect Continuous Tense: Rules, Examples and When to Use It
The past perfect continuous (had been + -ing) describes an activity that had been going on up to a moment in the past: We'd been driving for hours when the engine failed. Use it to say how long something had lasted before then, or to explain a past situation: She was tired because she'd been working all night.

On this page
- How to form the past perfect continuous
- When to use the past perfect continuous
- Time expressions
- Past perfect continuous vs past perfect simple
- Past perfect continuous vs past continuous
- Past perfect continuous vs present perfect continuous
- Common mistakes
- Past perfect continuous examples
- Where it fits in your learning
- Past perfect continuous exercises: 10 questions with answers
The past perfect continuous (also called the past perfect progressive) is formed with had been + -ing: I had been working, they'd been waiting. It describes an activity that was going on for some time before a moment in the past, and it's used to say how long that activity had lasted or to explain a past situation.
It's the present perfect continuous moved one step back in time. I've been waiting for an hour looks back from now; I'd been waiting for an hour when the bus came looks back from a moment in a story. If you know how the present perfect continuous works, you already know most of this.
How to form the past perfect continuous
had + been + verb-ing — the same for every person: I, you, he, she, it, we, they.
| Form | Example |
|---|---|
| Positive | She had been working all night. · We'd been driving for hours. |
| Negative | I hadn't been sleeping well. · They hadn't been waiting long. |
| Question | How long had you been living there? · Had it been raining? |
| Short answer | Yes, it had. · No, I hadn't. |
There's no has / have choice to make: had works for every subject. In speech it's usually contracted to 'd: I'd been, she'd been, we'd been. I'd can also mean I would, but in this form the next word is always been, so I'd been working can only mean I had been working.
Two forms to avoid: dropping been (She had working) and changing it to being (She had being working). The pattern is always had been + the -ing form, with the usual spelling changes (run → running, make → making, lie → lying).
When to use the past perfect continuous
1. How long something had been going on before a past moment
You're already talking about the past — a date, an event, a moment in a story — and you look back at an activity that had started earlier and was still going on, or had just stopped, at that point. For, since and how long are typical.
When I met her, she had been living abroad for ten years.
By 2020, he'd been working at the company since he left school.
How long had you been waiting when the doctor finally called your name?
2. Explaining a past result
Something in the past was visible or obvious — wet streets, red eyes, a mess — and the past perfect continuous gives the reason: the activity that had been happening just before.
The ground was wet. It had been raining.
Her eyes were red because she'd been crying.
I was exhausted — I'd been working twelve-hour days all month.
It's the past version of You're out of breath — have you been running? Told as a story, it becomes He was out of breath. He'd been running.
3. Setting the scene in a story
Stories often step back to show what had been going on before the main event. The past perfect continuous gives that background; the past simple then moves the action forward.
We'd been driving for about three hours when the engine started making a strange noise. We pulled over and called for help.
Once the background is set, go back to the past simple. A story full of had been quickly becomes heavy, and the past simple is what carries the events.
4. Reported speech
When you report something that was said in the present perfect continuous or the past continuous, the tense often moves back to had been + -ing:
"I've been waiting for ages." → She said she had been waiting for ages.
"We were working late." → They told me they had been working late.
In relaxed conversation, people often keep the original tense when the situation is still true. For the full set of rules, see direct and indirect speech.
Time expressions
| Expression | Example |
|---|---|
| for + a length of time | She'd been working there for six months when she got promoted. |
| since + a starting point | He'd been feeling ill since the weekend. |
| How long…? | How long had they been dating before they got engaged? |
| all day / all night / all morning | I'd been studying all night, so I could hardly keep my eyes open. |
| when / by the time + past simple | By the time we arrived, they'd been waiting for an hour. |
| before + past simple | They'd been arguing for weeks before they finally talked it through. |
The reference point is usually a past simple clause (when the bus came, by the time we arrived) or a past time (by 2020, at midnight). Without a past moment to look back from, the past perfect continuous has nothing to attach to. And the for / since rule is the same as everywhere else: for + a period (for two hours), since + a point (since Monday).
Past perfect continuous vs past perfect simple
The logic is the same as in the present. The continuous shows an activity and how long it lasted; the simple shows a finished result or a number of completed things. For the simple form in detail, see our guide to the past perfect.
| Past perfect continuous | Past perfect simple |
|---|---|
| The activity — how long | The result — what was done, how many |
| She'd been writing emails all morning. | She'd written twenty emails by lunchtime. |
| I'd been painting the fence, so my clothes were covered in paint. (It may not have been finished.) | I'd painted the fence, so it looked new. (It was finished.) |
| Not used with state verbs | We'd known each other for years. |
The test is the same as for the present forms: a number of finished things takes the simple (she'd run three marathons, not she'd been running three marathons), and "how long" about an activity takes the continuous.
Past perfect continuous vs past continuous
Both describe an activity in progress in the past, but from different angles. The past continuous (was / were + -ing) shows an activity in progress at a past moment. The past perfect continuous shows an activity in progress up to a past moment, usually with how long it had lasted.
| Past continuous | Past perfect continuous |
|---|---|
| When I arrived, she was cooking. (She was in the middle of it.) | When I arrived, she had been cooking for two hours. (She had started two hours earlier.) |
| At midnight I was still reading. | By midnight I had been reading for five hours. |
Rule of thumb: once you add a length of time that runs up to the past moment (for two hours, since lunch), you need the past perfect continuous.
Past perfect continuous vs present perfect continuous
The only difference is the reference point: now, or a moment in the past.
| Present perfect continuous (up to now) | Past perfect continuous (up to a past moment) |
|---|---|
| I've been waiting for an hour. | I'd been waiting for an hour when the bus came. |
| You look tired — have you been working late? | She looked tired — she'd been working late. |
The rules about state verbs and for vs since carry over unchanged, so the two forms are worth learning together. To see both in the context of all twelve forms, see the English tenses overview.
Common mistakes
- State verbs in the continuous:
We had been knowing each other for years.→ We had known each other for years. The same goes for believe, own, want, understand. - The past continuous with a length of time:
When I met him, he was living there for ten years.→ he had been living there for ten years. - A number of finished things:
By lunch, she had been writing twenty emails.→ she had written twenty emails. - Leaving out been, or using being:
They had waiting./They had being waiting.→ They had been waiting. - No past reference point:
I had been learning English for five years.(meaning up to now) → I've been learning English for five years. Use had been only when you look back from a past moment: When I moved abroad, I had been learning English for five years. - Instant, single actions:
The glass had been breaking.→ The glass had broken. Something that happens in a moment has no duration to describe. - Since with a length of time:
since two hours→ for two hours (but since two o'clock).
Past perfect continuous examples
Positive sentences
- I'd been waiting for forty minutes when the train finally arrived.
- She was tired because she'd been working all day.
- They had been living in the city for five years before they moved to the coast.
- The children were muddy — they'd been playing in the garden.
Negative sentences
- I hadn't been feeling well, so I left the party early.
- He hadn't been paying attention, and he missed the instructions.
- We hadn't been waiting long when the doors opened.
Questions
- How long had you been working there when you got promoted?
- Had it been snowing before you set off?
- What had they been doing before the police arrived?
Reported speech
- She said she had been studying all night.
- He told me he'd been looking for a job for months.
Where it fits in your learning
The past perfect continuous is usually taught at B1–B2, after the past perfect simple and the present perfect continuous (see CEFR levels explained). You'll meet it most in stories, explanations and reported speech. In everyday conversation, the past simple or the past continuous is often enough when the order of events is already clear — so treat it as a tool for stepping back in time, not something every past sentence needs. If the past perfect itself still feels shaky, start with how the past perfect works and come back.
Past perfect continuous exercises: 10 questions with answers
Choose or type an answer for each question. Each answer and a one-line explanation are under Show the answer.
When the bus finally came, we _____ for over an hour.
Show the answer
Answer: had been waiting. How long an activity had lasted up to a past moment: had been + -ing.
Her eyes were red because she _____ (cry).
Show the answer
Answer: had been crying. The activity explains a past result you could see: the past perfect continuous.
We _____ each other for years before we started working together.
Show the answer
Answer: had known. Know is a state verb, so it stays in the past perfect simple.
By lunchtime she _____ twenty emails.
Show the answer
Answer: had written. A number of finished things takes the past perfect simple, not the continuous.
He was out of breath because he _____ (run).
Show the answer
Answer: had been running. An activity that had just stopped explains how he was: had been + -ing.
When I got to the party, Tom _____ in the kitchen — he was in the middle of making pizza.
Show the answer
Answer: was cooking. In progress at that moment, with no length of time up to it: the past continuous.
They _____ (not / wait) long when the doors opened.
Show the answer
Answer: hadn't been waiting. The negative is hadn't been + -ing, the same for every person.
Last year Ana told me she _____ for a new job for months, and she'd finally found one.
Show the answer
Answer: had been looking. Reported speech about an activity that had lasted up to a past moment: had been looking.
I _____ English for five years, and I still practise every day.
Show the answer
Answer: have been learning. There's no past reference point and it's still true now, so the present perfect continuous.
By the time the storm stopped, it _____ (snow) for three days.
Show the answer
Answer: had been snowing. By the time + past simple, and how long the activity had lasted up to then: had been + -ing.
Find your overall level
You know this grammar point well. The free English level test looks at your English as a whole and gives you an estimated CEFR level, so you can see which course fits you.
This one needs a bit more practice, and that's normal. Ten questions on a single grammar point don't show your overall level, though. The free level test checks grammar, vocabulary, reading and listening, gives you an estimated CEFR level and suggests where to start.
Take the free level test →Questions people ask
What is the past perfect continuous?
It's had been + -ing (I had been working, they'd been waiting), the same for every person. It describes an activity that was going on for some time before a moment in the past: 'I'd been waiting for an hour when the bus came.'
When do we use the past perfect continuous?
To say how long something had been going on before a past moment, to explain a past result ('The ground was wet — it had been raining'), to set the background in a story, and in reported speech ('She said she had been waiting for ages').
What is the difference between the past perfect and the past perfect continuous?
The continuous focuses on an activity and how long it lasted; the simple focuses on a finished result or a number of completed things. 'She'd been writing emails all morning' vs 'She'd written twenty emails by lunchtime.'
What is the difference between the past continuous and the past perfect continuous?
The past continuous shows an activity in progress at a past moment ('When I arrived, she was cooking'). The past perfect continuous shows an activity in progress up to a past moment, usually with its length ('she had been cooking for two hours').
Can I use the past perfect continuous with know?
No. Know is a state verb, so it stays in the past perfect simple: 'We had known each other for years', not 'We had been knowing each other'. Believe, own, want and understand work the same way.

