The United States, Iran and five other world powers have announced a deal outlining limits on Iran's nuclear programme so it cannot lead to atomic weapons.

The move, which came after marathon negotiations, directs negotiators towards a comprehensive agreement within three months.

Reading out a joint statement, European Union foreign policy chief Federica Mogherini hailed what she called a "decisive step" after more than a decade of work.

U.S. Secretary of State John Kerry, uses his mobile phone while standing at a window of the hotel as the Iran nuclear talks continue, in Lausanne, Switzerland. Photo: Keystone, Jean-Christophe BottU.S. Secretary of State John Kerry, uses his mobile phone while standing at a window of the hotel as the Iran nuclear talks continue, in Lausanne, Switzerland. Photo: Keystone, Jean-Christophe Bott

Iranian foreign minister Mohammad Javad Zarif followed with the same statement in Farsi.

US secretary of state John Kerry and the top diplomats of Britain, France and Germany also briefly took the stage behind them.

US president Barack Obama is to speak later at the White House.

In Lausanne, Switzerland, Mr Kerry said in a tweet that there was agreement "to resolve major issues on nuclear program. Back to work soon on a final deal". He was expected to brief reporters later.

Ms Mogherini said the seven nations would now start writing the text of a final accord. She cited several agreed-upon restrictions on Iran's enrichment of material that can be used either for energy production or in nuclear warheads.

Crucially for the Iranians, economic sanctions related to its nuclear programmes are to be rolled back after the UN nuclear agency confirms compliance.

Mr Zarif told reporters the agreement would show "our programme is exclusively peaceful, has always been and always will remain exclusively peaceful", while not hindering the country's pursuit of atomic energy for civilian purposes.

"Our facilities will continue," he said. "We will continue enriching, we will continue research and development." He said a planned heavy water reactor will be "modernised" and that the Iranians would keep their deeply buried underground facility at Fordo.

"We have taken a major step but are still some way away from where we want to be," Mr Zarif said, calling Thursday's preliminary step a "win-win outcome".

Israeli leaders, deeply concerned about Iran's intentions, were much less positive.

Prime minister Benjamin Netanyahu said that a final agreement "must significantly roll back Iran's nuclear capabilities and stop its terrorism and aggression".

Ms Mogherini said Iran's heavy water reactor would not produce weapons-grade plutonium and that Fordo would not be a site for enrichment of uranium, which can be used for nuclear weapons.

The officials spoke following week-long talks that were twice extended past a March 31 deadline for a preliminary deal.

Although the US pushed for concrete commitments, the Iranians insisted on a general statement of what had been accomplished. Negotiators worked concurrently on documents describing what needs to be done for the final agreement.

The US and its five partners want to curb Iran's nuclear technologies so it cannot develop weapons. Tehran denies such ambitions but is negotiating because it wants economic sanctions imposed over its nuclear programme to be lifted.

Washington, in particular, faces strong domestic pressure. Critics in Congress are threatening to impose new sanctions over what they believe is a bad deal taking shape and the Obama administration needed to make as many details public as possible to sell the merits of its diplomatic effort.

The final breakthrough came after a flurry of overnight sessions between Mr Kerry and Mr Zarif, and meetings involving the six powers.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.