delivered the opinion of the court.
This is a suit in equity, brought to secure a .decree canceling a certain contract. Issues were joined upon the original pleadings and the cause brought to trial before the court sitting with a jury. By agreement of counsel and the approval of the court, after a portion of the evidence had been taken the jury were discharged, the parties permitted to reform their pleadings, and the cause was thereupon tried and submitted to the court. The plaintiffs filed an amended and supplemental complaint — referred to in the brief as the substituted complaint — and the defendant filed an answer thereto which contains certain admissions, certain denials and four affirmative pleas denominated “counterclaims.” From the record it appears that on May 1, 1907, the plaintiffs and the defendant entered into a contract in writing, by the terms of which the plaintiffs agreed to sell to the defendant, and the defendant agreed to purchase from the plaintiffs, certain real estate and personal property situated near Billings, Montana. The purchase price agreed upon was $37,000, payable in six installments: $2,000 upon the execution of the contract, and the balance, with interest, payable in five annual installments, the last payment to be made May 1, 1912, each of the *545deferred payments being represented by a promissory note. In the contract the land is described by legal sectional subdivisions and by government lots. As ground for a cancellation of the contract the plaintiffs allege breaches by defendant in the following particulars: (1) The failure and refusal of defendant to pay the installment and interest due May 1, 1908; (2) failure to pay the installment and interest due May 1, 1909; (3) failure to keep the buildings insured; and (4) the failure to pay certain assessments on stock in irrigation companies. Plaintiffs allege that after breach by the defendant they gave notice of their intention to terminate the contract as required by it, and they brought into óourt the promissory notes for cancellation and redelivery to defendant. They allege that the defendant has had free use and enjoyment of the property during the seasons of 1907 and 1908 and received a part of the crop for the year 1909. They allege that the fair rental value of the land was $1,500 per year, and that the defendant has had the use of the personal property, and has received in benefits from the use and occupation of the property more than he has paid to, or for the use of, plaintiffs. The answer admits that an installment of the principal and the interest were due on May 1, 1908, but there is apparently a denial that these amounts have not been paid. ‘There is an admission that the installment and the interest due May 1, 1909, have not been paid. Upon motion of plaintiffs the ■court struck out the first three of the so-called counterclaims, and ■upon the issues joined found for the plaintiffs and entered a ■decree, from which decree and an order denying his motion for •a new trial the defendant has appealed.
1. The first contention made is, that the complaint does not state a cause of action; that it is deficient in the following particulars: (a) It does not appear therefrom that the notes representing the deferred payments were tendered to the defendant [1] before this suit was instituted. The complaint does allege that the notes were brought into court for cancellation and return to defendant, and we think this is sufficient. (Maloy v. Berkin, 11 Mont. 138, 27 Pac. 442; 6 Cyc. 313.)
*546(b) It is said that tbe complaint is open to attack because it fails to allege that tbe land mentioned in tbe contract was free from encumbrances and that plaintiffs were able to convey title. [2] If this was an action to recover the purchase price or damages for a breach, such an allegation’ might be necessary; but in a suit to cancel the contract we are unable to understand what office such an allegation would perform. However, in paragraph 9 of the complaint, the plaintiffs allege facts sufficient to meet the rule for which appellant contends.
(c) It is further urged that the complaint is defective in failing to allege that plaintiffs have tendered to defendant the money paid by him under the contract. Upon the trial of this cause in the district court, and upon this appeal, both parties have proceeded upon the assumption that it is necessary for the complaint to contain an allegation that the plaintiffs have returned, or offered to return, to the defendant the moneys paid by him to or for plaintiffs’ use, or an equivalent allegation, and we shall determine this appeal upon the theory- of the parties as thus presented, reserving the question whether in a suit to cancel a contract of this character it is necessary for the plaintiff to place the defendant in statu quo, or to allege in his complaint that he has done so or made tender. Assuming for the purposes of this [3] appeal that such an allegation is required, we .think the complaint sufficient; for it alleges that the defendant has had the use of the premises from the date of the contract to the commencement of the .action; that the rental value of the property exceeds the amounts paid by defendant to, and for the use of, plaintiffs. All that the law requires under the rule recognized by the parties hereto is that the defendant shall be placed in as favorable a position as he was at the date of the contract, and plaintiffs ’ allegations in that respect are sufficient. It would be idle to require the plaintiffs to return to defendant the amount of payments made, if a decree in plaintiffs’ favor would require defendant to account for an equal or greater amount. In Lytle v. Scottish Am. Mort. Co., 122 Ga. 458, 50 S. E. 402, it is well said: “He [the vendee] is not entitled to a return of his purchase money until he has allowed, as a deduction therefrom. *547all damages caused by Ms breach, one element of which will be the fair rental value of the property during the time he'occupied it, even up to verdict.” (29 Am. & Eng. Ency. of Law, 2d ed., 649, 652; Wilson v. Moriarty, 77 Cal. 596, 20 Pac. 134.)
2. It is insisted by appellant that at the time this action was commenced he sustained toward respondents the relationship of mortgagor to mortgagees, and that plaintiffs’ only remedy was by foreclosure, under section 6861, Revised Codes. This contract is not in form a mortgage but an agreement to sell; however, it is insisted that since notes were given for the deferred payments, the vendee let into possession and the legal title retained by the vendors, equity will treat the transaction as a mortgage, and cases are cited which appear to lend support to this view. An examination of the authorities, however, will disclose the distinguishing characteristic in every instance. Every such case must be determined on its own facts and circumstances; for it is a cardinal rule in equity that the intention of the parties must give character to their transactions. In Western Nat. Bank v. National Union Bank, 91 Md. 613, 46 Atl. 960, the court said: “An equitable mortgage results from different forms of transactions in which there is present an intent of the parties to make a mortgage, to which intent, for some reason, legal expression is not given in the form of an effective mortgage; but in all such eases the intent to create a mortgage is the essential feature of [4] the transaction.” This contract purports to be an agreement by the plaintiffs to sell, and by the defendant to purchase, certain real and personal property upon the terms and conditions specified. It provides that time shall be of the essence of it; that the vendors may at their option terminate it for failure on the part of the vendee to comply strictly with its terms, and that upon such termination, the property involved and all payments made by the vendee shall be the property of the vendors, and the vendee shall not have any action to recover. In view of these provisions, for us to hold that the transaction evidenced by the contract amounted to a mortgage would be to make a new contract for the parties, and one widely at variance with their rnani*548fest intention — something a court of equity will not undertake to do.
3. It is next insisted that the relationship existing between the parties was that of landlord and tenant at will, and the notice to quit, given but eleven days before suit, was insufficient under section 4502 of the Revised Codes, and that this suit was brought prematurely. In speaking of the relationship existing between the parties to a contract to purchase real estate prior to default, the author of the article on Landlord and Tenant, in 24 Cyc. 884, says: “While in many cases a person in possession of premises under an executory contract of purchase has been said to be a tenant at will of the vendor, the rule supported by apparently the better authority is that, in a strict sense, the relation of landlord and tenant does not arise under such circumstances, it being said that there can be no implied contract from which the relation of landlord and tenant may arise in opposition to the express contract of sale.” And, speaking of the same subject after default, the author says: “After default in, or abandonment of, the contract of sale, further occupancy by the vendee may raise an implied tenancy at will, or, according to some cases, at sufferance. But in the absence of a provision in the contract of sale for the creation of a tenancy, such as an express agreement to pay rent upon default, the failure of the purchaser to comply with his contract, or of the vendor to fulfill upon his part, will not cause the occupancy under the contract to be regarded as having been as tenant.” It is elementary that the relationship of landlord and tenant arises out of contract, express or implied. (24 Cyc. 876.)
There is not any contention made — -and there could not be— that this contract in terms creates the relationship of landlord and tenant; but apparently the theory is that after default the vendee holds possession at the pleasure of himself or of the vendor, and by some process is converted into a tenant at will. There are authorities which uphold this view, but with them we [5] do not agree. The decided weight of authority and the better reasoning support the view that there cannot be an implied agreement for the occupancy of the land, in the face of the *549express contract that the vendee holds possession under his right to purchase. (Carpenter v. United States, 17 Wall. (U. S.) 489, 21 L. Ed. 680; Griffith v. Collins, 116 Ga. 420, 42 S. E. 743; Quertermous v. Hatfield, 54 Ark. 16, 14 S. W. 1096; Brown v. Randolph, 26 Tex. Civ. App. 66, 62 S. W. 981.) The right of the vendee to purchase continued after breach by him and until such time as the vendors saw fit to exercise the option given them by the contract to terminate it; so that it cannot be said that the contract to purchase was in full force and effect, and at the same time there was in effect, also, an implied agreement that the vendee should hold as tenant. The action of the parties under this contract completely negatives the idea that either ever intended that their relationship should be that of landlord and tenant.
4. Complaint is made of the ruling of the trial court in striking out the so-called counterclaims. In the first of these it is alleged that the plaintiffs orally represented to the defendant that the land — the subject of the agreement — comprised 365 acres, whereas in truth and in fact there were but 340 acres; that plaintiffs knew the representations to be false but defendant believed them to be true, relied upon them and in consequence thereof executed the contract. It is alleged that the land was valued at $100 per acre, and defendant insists that, whether the contract be canceled or not, he should be given credit for $2,500 because of this deficiency in the quantity of' land. Assuming [6] these allegations to be true for the purposes of this appeal, they do not constitute a counterclaim. If false representations were made by the plaintiffs as alleged, the vendee, upon discovering the fraud, might have had just cause for rescinding the contract, or might have had a cause of action for damages for the breach; but he cannot set them up as a' defense to plaintiffs ’ cause of action for a cancellation of the contract. ‘If plaintiffs were seeking to recover the purchase price, and defendant could prove these allegations, he would be entitled to be relieved from the payments pro tanto, but the allegations, if true, do not tend to diminish or defeat the plaintiffs ’ recovery in this action and were properly stricken out. (Osmers v. Furey, 32 Mont. 581, *55081 Pac. 345.) The defendant does not allege that he was damaged by reason of the deficiency in the quantity of land, and it is difficult to determine upon what theory he asserts this claim.
5. The second so-called counterclaim is predicated upon the refusal of plaintiffs to permit the defendant to sell forty acres of the land for $6,000 and to approve the sale and credit defendant with the- amount of this purchase price. It is alleged that prior to the execution of the written contract of May 1, 1907, plaintiffs and defendant had negotiated for the sale and had reached an oral agreement. It is then alleged that at the time this oral agreement was made, the plaintiffs contracted orally to permit the defendant to sell quantities of the land in question for not less than $100 per acre, and to approve such sales and credit defendant with the amounts of such sale prices upon his contract price for the entire property. A breach of this oral agreement is then alleged, and defendant claims that he is entitled to be credited with $6,000. But this contract, if made, was superseded [7] by the written contract of May 1, 1907, and since the written contract does not contain any provision for such transactions, defendant cannot be heard to assert any right under such oral agreement. It is not claimed that there is any mistake, or imperfection in the written contract with respect to such transactions, and the written agreement must be considered, therefore, as containing all the terms of their contract which had been agreed upon at the time the written contract was executed. (Rev. Codes, secs. 5018, 7873; Kelly v. Ellis, 39 Mont. 597, 104 Pac. 873.) Since evidence to prove this alleged oral agreement [8] would not have been.admissible (Riddell v. Peck-Williamson Co., 27 Mont. 44, 69 Pac. 241; Armington v. Stelle, 27 Mont. 13, 94 Am. St. Rep. 811, 69 Pac. 115), the court properly refused to consider defendant’s claim arising from such agreement.
6. In the third so-called counterclaim stricken out by the court, it is alleged that at the time the contract was made the plaintiffs represented to defendant that the ditches for the irrigation [9] of the land were in proper condition to carry and distribute the water over the land; that the defendant believed these representations and relied upon them, and planted crops of grain and *551lay which required irrigation; that when the irrigation season of 1907 arrived, defendant discovered that the ditches were wholly unfit for the purposes intended, and to repair them he was put to an expense of $403, and by reason of the delay incident to such repairing, his crops suffered from want of water and he was thereby damaged to the extent of $1,150. These facts, if true, do not tend to diminish or defeat the plaintiffs’ cause of action, and, therefore, do not constitute a counterclaim. Evidence of these facts, if admissible at all, was admissible under the general denial, as reflecting upon the question of the rental value of the land, for the purpose of enabling the court to determine whether the value of the use and occupation of the property by defendant equaled the amounts paid by him to, and for the use and benefit of, plaintiffs, and, as a consequence, to determine whether the parties were in the same relative positions as they were at the time the contract was executed. It appears from the record that the defendant introduced evidence, without objection, as to the condition of the ditches and the expense he was obliged to incur to repair them.- He did not offer any evidence as to the damage to his crops, and since he did not do so, we are not called upon to determine whether, if offered, such evidence would have been admissible.
The trial court disregarded the questions arising upon the alleged failure of defendant to keep the buildings insured or to pay the assessments upon the ditch stock; but found that the defendant had breached the agreement by his failure to make the payments due on May 1, 1908, and the payments due on May 1, 1909. The court also found that the value of the use and occupation of the premises by the defendant was $5,000, while the total amount paid by defendant to and for the use and benefit of plaintiffs was approximately $3,000. These findings are not attacked at all; and assuming that they are fully supported by the evidence, the defendant is not in a position to complain; for had the item of expense for repairing the ditches and the full amount of damages claimed by him as the result of injury to his crops been credited to him, it would still be found that he had received, in the use and occupation of the premises, an *552amount far exceeding the payments made by him, including the damages which he had suffered.
7. Our conclusions upon these specifications render it unnecessary to consider the remaining assignments, further than to say that we do not find any reversible error. *
The judgment and order are affirmed.
Affirmed.
Mr. Chief Justice Brantly and Mr. Justice Smith concur.