Theresa May has promised to set a timetable for the election of her successor after the next Brexit vote in the first week of June.
The agreement follows a meeting between the prime minister and senior Tory MPs who are demanding a date for her departure from Downing Street.
If she loses the vote on her Brexit plan, already rejected three times, sources tell the BBC she would resign.
Meanwhile, Boris Johnson has said he will run for leader once Mrs May goes.
Mrs May survived a confidence vote of Conservative MPs at the end of last year and existing Conservative rules mean she cannot formally be challenged again until December.
But the prime minister has come under increasing pressure to leave Downing Street this summer, amid the Brexit impasse and poor results for the Conservatives in the recent local elections in England.
The BBC's political editor Laura Kuenssberg said senior sources had told her it was "inconceivable" the prime minister could remain in office if MPs rejected her Brexit plans for a fourth time.
Have your say
More World Headlines
- Alabama sued over 'extreme' abortion ban
- Kenya upholds law criminalising gay sex
- Watch Obama play baseball, football with kids in D.C
- Theresa May announces resignation
- Rockets 'hit luxury hotel in Libya's capital'
- US lays new charges against Assange
- Nigeria: Six trapped in collapsed building
- UN backs end to UK control of Chagos islands
- Armed gang kills at least 18 in northwest Nigeria
- Female BBC manager rejects job over equal pay
- U.S. House's Pelosi: Trump is engaged in 'cover-up'
- Uber driver was Somali war criminal
- A baby cut from his mother's womb after she was killed opens his eyes
- South Sudanese journo beats Dangote in Fortune magazine’s World’s Greatest Leaders list
- Vibrator prize for Spanish squash champion spurs sexism debate