Past perfect continuous: had been + -ing
On this page
The past perfect continuous (had been + -ing) describes an activity that was in progress up to a moment in the past, often to say how long it had lasted or to explain a past result: She was tired because she had been working all night. We had been waiting for an hour when the bus came.
How to form it
subject+had been+verb-ing
They’d been driving for hours.
subject+hadn’t been+verb-ing
I hadn’t been sleeping well.
(Wh-)had+subject+been+verb-ing…?
Wh- question: How long had you been living there?
- subject
- had been
- verb-ing
When we use it
pastfuture
- ⏳How long, up to a past momentWhen I met her, she had been living in Paris for ten years.
- 🔍Explaining a past resultThe ground was wet. It had been raining. His eyes were red because he had been crying.
Past perfect simple or continuous?
Simple: result, number
- She had written three emails by 9.
- Completed; how many.
Continuous: activity, duration
- She had been writing emails all morning.
- The activity; how long.
Not with state verbs
Use the simple form with know, be, have (own), like: I had known him for years, not had been knowing.
It is the past version of the present perfect continuous: I’ve been waiting an hour → (later) I had been waiting an hour.
Common mistakes
I was waiting for two hours when he arrived.(how long, up to then)I had been waiting for two hours when he arrived.She had been knowing him since school.She had known him since school.We had been run for an hour.We had been running for an hour.
Check yourself
Past perfect simple or continuous?
He was out of breath because he ___ (run).
had been running (the activity explains the result; had run is possible but less natural here)
By the end of the day, she ___ (sell) 40 tickets.
had sold (a number)
How long ___ you ___ (study) English before you moved to London?
How long had you been studying…?
I ___ (know) Anna for years before we became friends.
had known (state verb)
Past perfect continuous exercises
Practise what you have just read. Every test has answers with explanations and a printable PDF.
QuizB1TensesPDF
Past Perfect Simple – Past Perfect Continuous Test A2 – B1 Grammar Exercises
20 questions · about 7 min
Questions
When do we use the past perfect continuous?
For an activity that had been going on up to a moment in the past: We had been waiting for an hour when the bus came.
What is the difference between had written and had been writing?
Had written focuses on the completed result or number; had been writing focuses on the activity and how long it lasted.
Can I say I had been knowing him?
No. Know is a state verb: I had known him.
Finished this lesson?
Mark it as studied when you understand it and have tried the exercises. Your progress shows on the grammar lessons page.
Questions and comments