The plaintiff, a builder, brought an action in a District Court seeking recovery in quasi contract for two partially completed houses which he had erected on two lots of land owned by the defendant. Finding that the defendant had been unjustly enriched, the judge held that a contract implied in law entitled the plaintiff to recover damages of $15,000, the value of the benefits conferred on the defendant’s property. The defendant appealed, and the Appellate Division reversed the judgment and ordered entry of judgment for the defendant. The plaintiff now appeals to this court.
*858 The facts reported to the Appellate Division by the judge are summarized as follows. In February, 1981, the plaintiff and the defendant entered into two written purchase and sale agreements whereby the defendant agreed to sell two lots to the plaintiff for $9,000 each, $8,500 of which consideration was to be paid on delivery of the deeds in August, 1981. The parties intended that the plaintiff would take possession of the lots by April 15, 1981. The plaintiff would pay for expenses incurred in his construction of the houses and then sell them to third parties. Both parties understood that the plaintiff would pay the defendant the balance of the purchase price for the lots from the proceeds of the house sales.
The builder partially completed the two houses but was unable either to obtain financing to complete them or to find purchasers, due to general adverse economic conditions. Although the dates of performance for the purchase and sale agreements were extended by several months, the builder was unable to pay for the lots. At all times, the owner was ready, willing and able to convey the lots. The judge found that there was neither fraud nor an express or implied promise in fact on the part of the defendant to pay the plaintiff for the value of the partially completed houses on the lots. The judge did find, however, that there was a contract implied in law. The defendant appealed to the Appellate Division. G. L. c. 231, § 108.
On appeal, the Appellate Division determined that the judge’s finding of a contract implied in law, or a quasi contract, was erroneous because, even if the defendant was enriched and the plaintiff had suffered a detriment, the evidence did not support the conclusion that either of these results was unjust. The Appellate Division reasoned that no injustice existed where the reasonable expectations of the parties were not defeated. The Appellate Division also stated that there was no basis for a finding that the plaintiff reasonably expected that the defendant would pay for partially completed houses if the plaintiff were unable to perform the contract. The Appellate Division concluded that the plaintiff had entered a speculative commercial scheme, bore the risk of not completing or selling the houses, *859 and therefore must bear the loss in a period of economic downswing. The plaintiff appealed to this court. G. L. c. 231, § 109.
On appeal the plaintiff argues that the Appellate Division order should be reversed because the evidence supports the judge’s finding of a contract implied in law requiring the defendant to pay for the value of the partially completed houses on his property. He contends that the law allows him to recover on a quasi contract theory even where an express agreement existed between the parties covering the sale and purchase of the lots, and where the party asking for damages violated the agreement. He further argues that the evidence also supports the judge’s finding that the plaintiff was not at fault in the breach of the contract and that the defendant had knowledge of the improvement of the property, assented to it, and was involved in a venture of common benefit to both parties, and thus should reasonably have expected to pay for it.
A quasi contract or a contract implied in law is an obligation created by law “for reasons of justice, without any expression of assent and sometimes even against a clear expression of dissent .... [Considerations of equity and morality play a large part ... in constructing a quasi-contract . ...” 1 A. Corbin, Contracts § 19 (1963). It “is not really a contract, but a legal obligation closely akin to a duty to make restitution.”
Bloomgarden
v.
Coyer,
Generally, if a landowner has requested that a person construct a structure on his or her property, it is reasonably expected that the landowner will pay for the services and benefit
*860
conferred, even if there was no express contract for the construction or if a contract has been violated.
Hayward
v.
Leonard,
The plaintiff contends that the instant case is distinguishable from
O’Connor
and
Glovsky
because, in addition to his construction of the houses, the parties mutually assented to the intent and purpose of the agreements and shared a common familiarity with the real estate and construction markets. Their mutual assent to the terms of the express contract does not negate, however, the fact that there was no agreement that the defendant would pay for unfinished (or finished) houses on his land in the event that the plaintiff was unable to fulfil his
*861
contractual obligations. Rather, the judge found that “[b]oth parties understood that the plaintiff would furnish the consideration for the construction of each house.” The plaintiff could reasonably have expected that he would be paid for his labor, but both parties understood payment would be made by a third party purchaser of the houses, not by the defendant. The defendant here could not reasonably have been expected to pay for the plaintiff’s efforts in what appears to have been a speculative commercial transaction. Although the plaintiff’s inability to perform the contract may not have been voluntary, it was his failure to fulfil his duties that caused the violation of the contract. “The rights of the [builder] were lost not through his misreliance upon a supposed legal relationship, not through the intervention of some fact or principle of law unknown to him; but through his failure to meet his own known duties under the contract.”
Mikulich
v.
Diltz,
In
LaChance
v.
Rigoli,
The order of the Appellate Division is affirmed.
So ordered.
Notes
The defendant has not contested the judge’s finding that his property was benefited by the partially completed houses in the amount of $15,000. We therefore do not reach the issue whether the houses were, in fact, a benefit to the property.
The fact that the parties in Glovsky, although intending to sign an agreement, never did, whereas in the instant case an express contract was signed, is inconsequential because the agreement in this case did not require the owner to pay the builder for constructing a house on his property.
