Everyone knows that it costs a pretty penny to purchase property in Santa Monica, so it came as no surprise that the late actor Larry Hagman’s top-floor penthouse in Santa Monica sold for $5 million.

The two-bedroom, three-bathroom pad is in a 10-story building constructed in 1963 that includes 3,029 square feet of living space, according to an article in the L.A. Times.

The contemporary-style condo has three parking spaces and views of the Pacific Ocean. Amenities include 24-hour security, a swimming pool and a gym.

Hagman died last year at 81. He is most famous for his television roles on “I Dream of Jeannie” and “Dallas.”

The property last changed hands in 1996 for $1.45 million, the Times reported.

David Solomon and Anna Solomon of Prudential’s Brentwood office were the listing agents for the Santa Monica penthouse.