MINER, J.:
It appears from the record that on December 17, 1890, the defendants Emily S. Page and E. J. Page borrowed from the plaintiff, Featherstone, the sum of $2,000, and gave him their note secured by a mortgage on the property in question. On August 26, 1891, the defendants Page and wife conveyed by warranty deed the said mortgaged property to defendants Brown and Emerson for the sum of $5,000, subject to the $2,000 mortgage of December 17, 1890, which the grantees jointly agreed to assume and pay. Brown and Emerson also paid to Page $1,000 in cash, and executed a purchase-money mortgage back to Page upon the property purchased for the sum of $2,000, as consideration for the premises conveyed to them. At the maturity of the $2,-000 mortgage, dated August 26,1891, defendant Emerson paid $1,200 thereon, and Brown gave to Page a new purchase-money mortgage, dated October .6, 1891,» upon his undivided half of the premises, for $800, to secure a part of the said purchase price, and Mrs. Page released t'he said $2,000 mortgage of August 26, 1891, of all of which Emerson had notice at the time. On March 1, 1892, Page assigned the said $800 mortgage to plaintiff Feather-stone, so that Featherstone then held both mortgages upon the property, to wit, the $2,000 mortgage which, both Brown and Emerson were obligated to pay, and the $800 purchase-money mortgage which Brown gave to Page upon his undivided half of the premises in order to release the former $2,000 mortgage upon which. Emerson was jointly liable. “On the 17th day of January, 1898/ there was due upon the note and mortgage of $2,000, given by said Emily S. Page to John Featherstone, December 17, 1890, the sum of $2,200, including interest, and thereafter, upon said day, said S. P. Emerson paid to the plaintiff $1,100 thereon, and tendered to plaintiff the balance due thereon if plaintiff would assign to Emerson *20the mortgage of $2,000. Plaintiff refused to accept said tender or make said assignment, but offered to assign said mortgages of $2,000 and $800 to said Emerson, upon payment to him of the full amount due upon both of said mortgages, which said Emerson refused to do.” In answer to Emerson’s cross complaint, plaintiff alleges that the $800 note and mortgage, given by Brown to Mrs. Page as part of the purchase-money mortgage, and which was assigned to plaintiff, had been foreclosed, and plaintiff had purchased Brown’s interest in the land under such foreclosure; and it appears that the plaintiff was in the possession thereof, and no adverse claim had been set up in the foreclosure proceedings by Emerson.
The errors assigned by the defendant Emerson raise the question of his right to subrogation to the former rights of the plaintiff in the $2,000 mortgage of December 17, 1890, as against Brown and Mrs. Page, and her assignee, the plaintiff, and the superiority of that right over the rights of Featherstone acquired under the $800 note and mortgage, although no tender or payment of the $800 mortgage had been made. Emerson claims that he is subrogated to the prior incumbrance to which the $800 incumbrance is inferior. The plaintiff contends, and the trial court held, that while Emerson was a surety for Brown as to one-half of the $2,000 mortgage of December 17, 1890, the equities of Featherstone, the plaintiff, as assignee of the $800 mortgage of October 26, 1891, given by Brown to Page for unpaid purchase money, was superior to Emerson’s right, and that Emerson was not entitled to subrogation without having paid or offered to pay the $800 mortgage. The court decreed a dismisal of 'Emerson’s cross complaint, and gave judgment for the plaintiff. As between Brown and Emerson, who were purchasers of a common estate, and bound by a joint obligation created thereon by them*21selves, each was bound to contribute Ms proportion towards tbe discharge of the common burden, and either could be compelled to discharge the debt. It was a joint obligation. If Emerson was compelled to pay the whole to protect his rights, he could be subrogated to the rights of the owner of the security, as against Brown’s interest, upon tender or payment of the debt secured, if no other or greater equities intervened. The plaintiff, who was the owner of the $2,000 mortgage of December 17, 1890, is first in time and equity as to that mortgage, because he loaned his money on the property before any other rights attached. The obligation which Emerson and Brown took upon themselves was to pay $5,000 for the property. They purchased as tenants in common, each to take an undivided one-half interest; but they voluntarily obligated themselves jointly to pay the full amount. As to the holder of the obligation, they are the principal debtors; as to themselves they were sureties for each other for one-half of the debt. Their promise to pay the purchase money is evidenced by the $2,000 mortgage of December 17, 1890, which they assumed and agreed to pay, and by the $2,000 note and mortgage of August 26, 1891, which they gave, and which both agreed to pay. These form the remaining obligation, and as to each other they were of equal equity, amounting, in fact, to one debt of equal importance. As between Brown and Emerson, the first mortgage has no equity in advance of the second.
A purchase-money mortgage is a mortgage upon real estate, given upon a conveyance thereof, to secure the balance of the purchase money remaining unpaid. It is the debt created by the purchase Such purchase-money mortgage usually has the priority over other claims or liens of any kind arising through the mortgage’ *22to the extent of the land purchased, except as it may be affected by the recording laws; and when the purchase money is the consideration of the instrument, it will continue to be the consideration of any other instrument executed by agreement, in substitution of the old one, even though a part of the purchase money on the original mortgage has been paid before the execution of the second, unless other superior equities have intervened, which we do not find to exist in this case. 19 Am. & Eng. Enc. Law, 583, 575-578; Austin v. Underwood, 37 Ill. 438; Jones v. Parker, 51 Wis. 218; Pratt v. Bank, 12 Kan. 437; Flanagan v. Cushman, 48 Tex. 241; 2 Warv. Vend, pp. 736, 737.
The payment by Emerson of $1,200 on the $2,000 mortgage of August 26, 1891, paid so much of the joint debt. The fact that Mrs. Page released the $2,000 mortgage of August 26, 1891, on payment of the $1,200 by Emersion, and the giving back of the purchase-money mortgage of $800 by Brown on his'undivided part of the land, with the tacit agreement that such mortgage should be a part of the obligation of August 26, 1891, and the express agreement that it should be a purchase-money mortgage, of all of which Emerson had notice at the time, was to Emerson’s benefit to the amount of $800 remaining unpaid, and should not be used as a subrogation weapon by Emerson to defeat Mrs. Page, nor the plaintiff, who succeeds to her rights in the mortgage, from recovering the purchase money actually due for the purchase price of the land sold, without first paying or offering to pay the same. Jones Mortg. § 229, and cases cited; 2 Warv. Vend. 736; 2 Jones, Liens, § 1116; Hurlbert v. Weaver, 24 Minn. 30; 19 Am. & Eng. Enc. Law, 583. As a general rule the right of subrogation cannot be enforced until the whole debt is paid or tendered to the creditor. Emerson ¡should have extinguished the debt before invoking the remedy sought. *23Until the creditor is paid, there cannot ordinarily be any interference with his security which might prejudice or embarrass him in collecting the balance of his claim. The property was the primary fund to meet the obligation, and Mrs. Page held the purchase-money mortgage as such, and transferred her right to the plaintiff. 3 Pom. Eq. Jur. § 1619; Sheld. Subr. §§ 127, 176, 177; Investment Co. v. Bayless (Va.) 21 S. E. 279; 2 Brandt, Sur. §§ 306, 308, 321, 446; 2 Warv. Vend. §§ 736, 737; Grubbs v. Wysors, 32 Grat. 127; Clark v. Warren, 55 Ga. 575.
The equity of Mrs. Page for the unpaid purchase-money mortgage of $800 is therefore superior to the equities of both Emerson and Brown, and, until she was paid in full, neither has any just equitable right against her. or her assignee, the plaintiff. Emerson, as surety for Brown, has an equity superior to that of Brown in the property, and, as against Brown, this equity could have been invoked after payment of the whole debt. Until payment, the plaintiff’s equity is superior to the defendant’s, Mrs. Page’s equity is superior to that of Emerson, and Emerson’s to that of Brown. We are of the opinion that the judgment of the court below should be affirmed. It is affirmed accordingly.
Bartch, J., concurs.
ZaNE, C. J.
(dissenting):
It appears from the record in this case that defendant Emily S. Page, on December 17, 1890, borrowed $2,000 of the plaintiff, John Featherstone, and that on the same day she gave 'her note and mortgage on real estate owned by her to secure the same; that the note was made payable in two years from its date, and drew interest at 1 per cent per month; that the mortgage was duly recorded, and provided for the payment of an attorney’s fee of $100 *24in case suit should be brought to- collect the same. It also- appears that the defendant Page, on August 26, 1891, conveyed the land by a sufficient deed to defendants Robert Brown and S. P. Emerson, for the consideration of $5,000; that the grantees paid at the time $500 each, and assumed the payment of the note mentioned above, and to secure the remainder they gave their note for $2,000, and a mortgage on the same property; that the note was payable in 60 days from its date, and drew interest at 1 per cent per month, and provided for the payment of 10 per cent thereon as an attorney’s fee, in case suit should be brought to collect it; that this mortgage was also recorded; that the above-mentioned deed was in express terms made subject to the mortgage first named; and that each of the defendants took an undivided half interest under the deed, and agreed between themselves that they should respectively pay one-half of the purchase price. It also apears that on October 26, 1891, when the second note became due, Emerson paid $1,000, his half of it, and $200 of Brown’s share, making $1,200, and that Brown gave his individual note for $800 for the balance due Mrs. Page. In consideration of the payment of this $1,200, Emerson was expressly released from further liability for this $2,000 note, and the mortgage to secure it was satisfied. Heath, Featherstone’s agent, testified as follows: “Q. Was the $2,000 mortgage paid, and, if so, how? A. It was paid by Emerson sending me a check for something over $1,200.” To another question the witness further stated that Brown gave his individual note for the remaining $800, secured by a mortgage on Brown’s undivided half of the land. • Witness was further examined as follows: “Q. State whether this 60-day $2,000 mortgage was paid off and released at that time. A. It was; the first short mortgage was paid.” Counsel for Featherstone asked: “Do you know? A. Yes. Q. *25Did you send tbis note and mortgage, after it bad been released, to Emerson? A. I think I did. Q. Tbe note was not paid in easb, was it? A. No-, sir. Q. Just as you have stated? Yes, sir.” It also appears that Emerson produced tbe $2,000 note and mortgage in evidence on tbe trial, and that after tbis $2,000 note bad been paid, as shown by tbe evidence, and tbe mortgage to secure it bad been 'satisfied, it was ¡satisfied on tbe record as follows*: “Salt Lake City, Utah, Nov. 2, 1891. Declared satisfied by entry on margin of tbe record by Emily S. Page.” Tbis entry on tbe margin of tbe record was duly signed by tbe recorder as tbe statute required. It also appears that after tbis $2,000 note bad been paid, and tbe mortgage to secure it bad been released, and both bad been returned to Emerson, that Featberstone purchased the $800 note of Mrs. Page, paying for it $700. It also appears that Emerson, before this suit was brought, paid Featberstone one-half of the original $2,000 note given by Mrs. Page to him, with all interest due, and afterwards tendered tbe balance remaining due on that note, and an attorney’s fee of $100, but that Featberstone refused to accept it and return tbe original $2,000 note unless Emerson would also pay tbe $800 note given by Brown to Mrs. Page, to which Emerson was not a party. It also appears that Featberstone foreclosed tbe $800 mortgage, and obtained Brown’s individual one-half of tbe land, but that Emerson was not a party to tbis foreclosure suit, and it does not appear that be bad any notice of it. It also appears that Featberstone afterwards instituted bis action against Emerson and Brown to foreclose tbe mortgage given to him by Mrs. Page.
In view of tbe foregoing facts, Emerson filed bis answer to tbe complaint of Featberstone, and filed his cross complaint against Featberstone and Brown, in which be alleged tbe foregoing facts, and asked to be subrogated *26to Feathenstone’s rights under the mortgage which he had tendered payment of in full. Emerson and Brown having purchased the land, and each having taken an undivided one-half of it, in the absence of any express agreement, they were, as between themselves, liable to pay one-half of the purchase price, and were respectively bound to pay one-half of the mortgage to Featherstone. As between themselves) each was bound to contribute his proportion to discharge the common burden, and beyond that the law regarded each as the surety of the other for the payment of the other’s part, and, if one should pay more than his part, he would stand in the place of the satisfied creditor to the extent of the excess paid. The creditor has no right to object, and the joint debtor cannot complain, because his surety is in that way enabled to collect a just debt against him. Such right of subro-gation is based upon the plainest principles of equity. Gearhart v. Jordan, 11 Pa. St. 325; Simpson v. Gardiner, 97 Ill. 237.
But it is insisted that Emerson cannot be subrogated to the rights of Featherstone by virtue of the first mortgage for $2,000 given by Mrs. Page to him, because he became the assignee of the mortgage to secure the $800 note by Brown to Mrs. Page. The subrogation is only asked to the extent that Emerson is compelled to pay Brown’s portion of the first note. He was not bound to pay the $800 note. He was not a party to it. Mrs. Page would not rely on her vendor’s lien when she sold the land to Emerson and Brown, and she took their note for the unpaid purchase price, and a mortgage to secure it. In accepting that mortgage she waived her vendor’s lien, if she had any. All her equities, if any, because of the consideration of the note being a portion of the purchase price, were merged in that mortgage. ■“When any other independent security is taken as a *27mortgage on tlie land, or upon other land, or the personal responsibility of a third person, the lien is held to be waived, unless there is at the time an .express agreement for its retention. * * * The fact that the mortgage which the vendor takes at the time of the conveyance is expressed to be for the purchase money of the land, is none the less, a waiver of his vendor’s lien.” Avery v. Clark, 87 Cal. 619; Baum v. Grigsby, 21 Cal. 173; Camden v. Vail, 23 Cal. 634; Gaylord v. Knapp, 15 Hun. 87; 3 Pom. Eq. Jur. (2 Ed.) 1252. In the case of Ryhiner v. Frank, 105 Ill. 331, the court said:
“We do not apprehend that there could be any going-back to the time of McCoy’s purchase of the lots on January 20, 1879, and asserting a lien on the premises from that time as a vendor’s lien for the purchase money, but that the taking of the trust deed would be a waiver of the implied vendor’s lien, and that such deed would be the sole measure of the vendor’s right in the land for the security of payment of the purchase money.” In the ease of Pease v. Kelly the court said: “A mortgage is a more certain and definite security than a vendor’s lien. The lien exists if there is no higher security, but we think that the taking of a mortgage, which is an open and public lien, is a waiver of the vendor’s lien, and we think that both liens cannot exist at the same time, and such seems to be the well-established doctrine of the cases.” 3 Or. 417.
Mrs. Page having waived her equities against the land in question, except such as she obtained by virtue of her second mortgage, which does not profess to be for the purchase price, she 'had none to transfer, except such as the mortgage expressly gave her; and this mortgage, as it appears from the evidence above referred to, she expressly released on the 26th day of October, 1891, in *28consideration tbat Emerson would pay the one-half of the note secured by it, and $200 on Brown’s half, and by the execution of an individual note by Brown for the balance, and a mortgage on his half to secure it. The second note for $2,000 was regarded as paid, and the mortgage satisfied on the record by Mrs. Page, and both note and mortgage were delivered to Emerson in pursuance of the understanding of the parties, and he, having them in possession, produced them in evidence on the trial. Mr. Emerson was not a party to this $800 note, and it was expressly understood that he was not to be. How, then, can he be held in any way for the payment of that note to Mrs. Page or her assignee? Her assignee, who shaved the note at much less than the amount due, was inf ormed of all these facts when he afterwards took an assignment of it, for the public record disclosed the fact that the $2,000 note had been satisfied, and that Emerson was not on the $800 note, and that the mortgage to secure it was against Brown alone, and on his individual half of the land. There can be no doubt as to the payment and satisfaction of the second $2,000 mortgage, and the fact that Emerson was not bound to pay the $800 note.
But if the vendor’s lien, or any equity against Emerson, with respect to the land, had existed outside of the mortgage, and had not been waived by it, such lien or equity did not pass to' Featherstone by virtue of the assignment of Brown’s $800 note. The great weight of authority is to the effect that it does not. Where such lien is recognized, it is to the vendor, and does not pass to his assignee. In the opinion of the court by Chief Justice Field, in the case of Baum v. Grigsly, 21 Cal. 173, the court said: “Indeed, with the exception of decisions of two or three states, the adjudged cases are uniformly against any assignment of the lien by a transfer of the note or personal security of the vendee. * * * The *29assignee of a note given for the purc'base money stands in a very different position. He bas not parted with the property which he seeks to reach in consideration of the note which ‘he has received. He has never held the property, and has therefore no special claims upon equity to subject it to sale for his benefit. * * * ‘The vendor’s lien,’ says the supreme court of Tennessee, ‘is nothing more than a mere equity, capable of acquiring the force and effect of a lien, under certain circumstances, in the event of the nonpayment of the purchase money.’ * * * But this lien is a mere personal equitable right of the vendor, and is not assignable. It looks only to the vendor, and does not pass to the assignee of the vendee’s obligation for the consideration, and, consequently, cannot be enforced in his favor.” From the large number of cases we cite the following: First Nat. Bank v. Salem Capital Flour-Mills Co., 39 Fed. 89; Hammond v. Peyton, 34 Minn. 529; Jackman v. Hallock, 13 Am. Dec. 627; 2 Jones, Mortg. 1092; Keith v. Horner, 32 Ill. 524; Bonnell v. Holt, 89 Ill. 71; Gruhn v. Richardson, 128 Ill. 178; White v. Williams, 1 Paige 502; Wellborn v. Williams, 52 Am. Dec. 427.
But it is claimed that the subrogation of Emerson to the rights of Featherstone under the first mortgage, without paying the later mortgage given by Brown alone to Mrs. Page, and assigned to Featherstone, would be a subrogation pro tanto. But that would not be a pro tanto subrogation. The second $2,000 note and mortgage, for the remainder of which the $800 note and mortgage were given, were paid as to Emerson, and satisfied and given up to him, and Mrs. Page had no further claim on him, legal or equitable, after the $800 note given by Brown. To hold that this last mortgage, given by Brown alone to Mrs. Page, must also be paid, would be to tack onto the first mortgage by her to Featherstone the mort*30gage by Brown, given at a later day, and to which Emerson was not a party. Brandt, in his work on Surety-ship and Guaranty, says: “The surety who pays a debt secured by mortgage will by means of subrogation thei*eto have preference over a subsequent mortgage on the same property, given by the principal to the creditor to secure a subsequent debt.” 2 Brandt, Sur. § 315; Bank v. Silliman, 65 N. Y. 475. The debt which Emerson wa.s compelled to pay was a prior one, and Featherstone must have known of Emerson’s right to' subrogation upon paying it when he purchased the subsequent $800 note given by Brown alone. If a surety on any number of notes less than the whole number secured by a mortgage satisfies such as he is surety upon, he cannot, without paying all of the notes, be subrogated to the rights of the mortgagee or his assignee, because that would deprive the creditor of his security without payment of the debt. Such subrogation would be pro tanto. Emerson is not asking for subrogation upon payment of a part of the indebtedness which the mortgage was given to secure. He tenders the entire debt secured by it. The $800 mortgage simply states that it is given for Brown’s unpaid portion of the purchase money. There is no other agreement as to a purchase-money mortgage, and cases cited above hold that such statement cannot transfer to the assignee of a purchase-money mortgage the equitable lien in favor of the vendor; and certainly it cannot do so after such lien or equity has been abandoned by taking the second $2,000 mortgage as in this case.
I will refer to some of the authorities principally relied upon, cited in the opinion of the court. 2 Warv. Vend. 73S, and 2 Jones, Mortg. 1116, are cited. Those sections are confined to cases where there is an express agreement for a lien, or where the vendor has not parted with his legal title. They can have no application to this *31case. The same must be said of the sections referred to in Sheldon on Subrogation. Page 583, 19 Am. & Eng. Enc. Law, cited, contains one very broad statement. The author, however, refers in a note to the case of Austin v. Underwood, 37 Ill. 438. That was a case under the statutes of Illinois, which did not permit a homestead right to defeat the collection of the purchase money for the land. The case of Flanagan v. Cushman, 48 Tex. 241, is against the great weight of authority, and it further holds that the mortgage places the superior title to the land in the mortgagee. It appears that Featherstone obtained one-half of the land upon the foreclosure of the mortgage, for which he paid $700. If Emerson has no equities under his cross complaint, his one-half will cost him, in principal, interest, attorney's fees, and costs, more than $4,000.