“The Inheritance,” an ambitious two-part play exploring contemporary gay life, will end its Broadway run on March 15 after a twisty journey that saw the show soar in London but sink in New York.

The play, written by Matthew Lopez and directed by Stephen Daldry, was inspired by E.M. Forster’s masterful novel “Howards End,” and similarly explores issues of class and real estate through the intersecting relationships of a small group of people. In “The Inheritance,” which is set in and around New York City, the intergenerational relationships are shadowed by differing experiences of the AIDS epidemic.

The play, which began previews Sept. 27 and opened Nov. 17, is presented in two parts, each running nearly 3 hours and 15 minutes. At the time of its closing, there will have been a total of 46 previews and 138 regular performances (each part is counted as a single performance).

The play, with Tom Kirdahy, Sonia Friedman and Hunter Arnold as lead producers, was capitalized for about $9.1 million, according to a spokesman, and will close at a loss. It opened in New York to mixed reviews, and struggled at the box office; during the week that ended Feb. 16 it grossed $345,984, which is just 33 percent of its potential, and played to houses that were only half full.