The announcement ends years of speculation about the ownership of Formula 1.
Bernie Ecclestone will remain as chief executive but Chase Carey, vice-chairman of 21st Century Fox, will become the new chairman.
Liberty Media has also stakes in several sports and entertainment businesses, including the Atlanta Braves Major League Baseball club.
Owned by the billionaire John Malone, Liberty Media will initially purchase a minority stake in the world’s leading motor-racing championship. A full takeover is planned if regulators approve the deal.
The total transaction values the firm at $8 billion but includes $4.1 billion worth of F1’s debt.
Liberty Media is buying the stake from the private equity firm CVC Capital.
CVC has held a stake for the past decade but sold some of its holding in 2012.
The private equity firm has been criticized for taking considerable profits from the sport, which has suffered from falling TV ratings in recent years.
“We are excited to become part of Formula 1,” said Greg Maffei, chief executive of Liberty Media.
“We think our long-term perspective and expertise with media and sports assets will allow us to be good stewards of Formula 1 and benefit fans, teams and our shareholders.”
Bernie Ecclestone said: “I would like to welcome Liberty Media and Chase Carey to Formula 1 and I look forward to working with them.”
Earlier, the 85-year-old British businessman said in an interview with Reuters that he had been asked to stay on for three years and would miss the Singapore Grand Prix on September 18 as he needed be in London for the negotiations.
Bernie Ecclestone has run the sport for 40 years.
At least 158 people have died in Spain's worst flooding disaster in generations. On October…
Google has been fined two undecillion (a two followed by 36 zeroes) roubles by a…
Embarking on a home remodel is an exciting journey, promising enhanced comfort, increased property value,…
The US presidential candidates continued to campaign across key swing states on October 20. Footage…
Elon Musk has said he will give away $1 million a day to a registered…
India and Canada have decided to expel their top envoys along with other diplomats as…