Nani, 20, has long been linked with a move to Old Trafford.
A club statement on United’s official website confirmed: “Manchester United is delighted to announce it has agreed terms in principle with Sporting Lisbon for the purchase of the registration of Nani.
“Personal terms have been agreed and a formal announcement will take place once the necessary administrative procedures, including a medical have been completed.”
A other statement said: “Manchester United is delighted to announce it has agreed terms in principle with FC Porto for the purchase of the registration of Anderson.”
The 19-year-old Brazilian, Anderson, has been named in Brazil coach Dunga’s squad for the Copa America in Venezuela next month.