A massive spec house in Calabasas has sold for $30 million, according to the local multiple listing service. The deal sets a sales record in the celebrity-filled Southern California city, local real-estate agents said.

The sale is the most expensive to date in the San Fernando Valley, the people said. Previously, a house in Hidden Hills, another city in the Valley, sold for $22.2 million in 2019, according to public records.

Kim Kardashian purchased a Hidden Hills mansion for $19.75 million in 2014, according to records. Khloe Kardashian sold her Calabasas home for $15 million last year, according to records.

The most recent sale was a roughly 22,000-square-foot house built by developer Michael Palumbo, according to the listing. It has eight bedrooms, a guesthouse and a poolside casita.

It went on the market in October asking $37.999 million, according to Zillow. The price was later dropped to $34 million.

Tomer Fridman of the Fridman Group at Compass and Brendan and Rayni Williams of Beverly Hills Estates had the listing.

Write to E.B. Solomont at EB.Solomont@wsj.com