The defendant negotiated with the New York, West Shore and Buffalo Railway Company for the purchase by him from the company of two lots lying side by side in the village of Port Jackson. He entered into a written contract with the company by the terms of which “he hereby agrees to buy and does buy” the same and agrees “ to pay therefor $1,725, when a deed of said premises is duly executed and delivered to him ” by the company, the deed to be delivered in thirty days from date, namely, May 2, 1882.
The defendant signed and delivered this agreement to the railroad company. • The company accepted the agreement and intended to carry it out on its part, but did not sign it. The evidence tended to *296show that the defendant then orally agreed with the plaintiff to sell to him the westerly one of these two lots for the sum of $800, the deed thereof to be given him by the railroad company, and the plaintiff to pay to the company the $800. The defendant requested the company to execute such deed to the plaintiff. The railroad company thereupon executed and delivered to the defendant a deed of the easterly portion of the whole lot, and received from him $925, and also executed and delivered to the plaintiff a deed of the westerly portion thereof and received from him the balance of the purchase money, $800.
The defendant gave evidence upon the trial tending to show that by mistake the railroad company so located the division line between the two lots in the deeds to the respective parties, as to make the deed to the plaintiff embrace more land than the plaintiff and defendant had agreed should be conveyed to the plaintiff, and by the like mistake and as a consequence of it, less land was conveyed to the defendant than he had directed the company to convey to him. The evidence also tended to show that the defendant did not notice this mistake at the time he received his deed, and also tends to show that the plaintiff eicher did not notice it or was silent with, respect to it.
The parties entered into possession of their respective lots and located and constructed a division fence between the same upon the line as originally intended between them, instead of upon the line mentioned in their respective deeds, and thus the- defendant entered into possession of a narrow strip of which the plaintiff had the paper title from the railroad company. Plaintiff subsequently demanded possession of this strip, which, being refused, he brought this action in ejectment to recover possession thereof. The defendant answered setting forth the alleged mistake and claiming, as against the plaintiff the equitable title to the strip in question.
The trial court directed the jury to render a ATerdict for the plaintiff for the strip in dispute, and refused to submit to the jury any questions of fact arising upon the evidence, holding that if the facts were as defendant claimed, they would constitute no defense. The learned trial court assumed that because the contract of the defendant with the railroad company was unilateral, that is, that the defendant agreed to buy and the railroad company did not agree to *297sell; therefore, the defendant did not acquire any interest in the whole parcel before the deed was given, and had no equitable title to any of it, and, therefore, when the railroad company gave the deed to the plaintiff, if it did convey too much, the excess conveyed was not the defendant’s, and hence no actual interest of his was affected. This view would perhaps be conclusive if the court had power to deal only with the legal rights of the parties. But the real question here was not whether the defendant had, by a mistake of fact, lost legal title to the strip of land of which he was already the equitable .owner, but, whether in attempting to execute contracts which should give effect to the mutual intention of the parties a mistake of fact had occurred, which so far defeated that intention as to result in vesting title to the strip of land in the plaintiff, which, but for the mistake, would have been vested in the defendant.
Assuming the facts to be as the testimony tended to establish them, the defendant had made two subsisting executory agreements, the first with the railroad company respecting an entire parcel of land, the second with the plaintiff, dependent upon the first, respecting a definite portion of the same entire parcel. These agreements were not enforceable by the defendant against either party, but all the parties were willing they should be executed, and they undertook respectively to do the acts necessary to their execution in fulfillment of their respective promises.
By the inadvertence of the railroad company, aided possibly by the negligence of the defendant, these contracts were so executed as to frustrate a substantial part of the intention of the parties and to pass title to the plaintiff of a strip of land which ought to have passed to the defendant.
Now, the plaintiff, upon the case stated, has the legal title to this strip, but he ought not to have it; he ought in good conscience to surrender the title to the defendant. The railroad company has no interest in the question; the case is strictly between the plaintiff and defendant.
It is no objection to the relief asked by the defendant that the agreements which the parties attempted to execute, they could not have been compelled to execute. (De Peyster v. Hasbrouck, 11 N. Y., 582; Rider v. Powell, 28 id., 310; Wiswall v. Hall, 3 *298Paige, 313; Crippen v. Baumes, 15 Hun, 141.) The defendant simply asks that the court relieve him from the prejudice to his title which a mistake of the parties has caused. This relief con-sits in placing the plaintiff and defendant in the same position with respect to each other that they meant to secure by the execution of their agreement.
It is not. necessary to reform the deeds in order to do justice between the parties. Such reformation would require an action in which the railroad company should also be a party. Judgment in such action would no doubt furnish evidence decisive of this action, but the trial of this action would need meantime to be stayed. Such judgment, if favorable to this defendant, would give more formal, but not more efficient, expression to the defendant’s title to the land in question than would be given in this action, if it should be adjudged that the plaintiff is not entitled to recover. Equity avoids circuity of action, and when justice requires it; regards as done what ought to have been done. The same state of facts which would entitle the defendant to a reformation of the deeds would establish his equitable right to the possession of the land, andas effectually defeat an action of ejectment as would the legal title. (Hoppough v. Struble, 60 N. Y., 430; Crary v. Goodman, 12 id., 266; Code of Civil Pro., § 507.)
The case should be determined upon much the same principles as would govern, if the defendant had brought his action against the railroad company, and the plaintiff, to have the deeds reformed, so as to give that effect to the intention of the parties, which, resting in parol or otherwise, they intended to consummate by the deeds. While the action is legal and the defense equitable, the method of trial is as if the action were wholly legal. (Wisner v. Ocumpaugh,, 71 N. Y., 113.) We conclude, therefore, that the defendant was entitled to have submitted to the jury the questions of fact, arising upon the testimony in his behalf, substantially as he requested.
The judgment should be reversed and a new trial granted, with costs to abide the event.
Learned, P. J., concurred; Bookiss, J., not acting.Judgment reversed, new trial granted, costs to abide event.