The decision was made by Prince Philip himself and is supported by the Queen, a palace spokesman said.
The duke, who turns 96 next month, will attend previously scheduled engagements between now and August but will not accept new invitations.
The Queen "will continue to carry out a full programme of official engagements", the palace said.