This is аn appeal from the order of the Court of Common Pleas of Delaware County granting appellee’s preliminary objections in the nature of a demurrer to appellants’ complaint. We reverse.
Appellants raise four issues for our consideration:
1. Whether a complaint seeking recovery pursuant to an oral agreement can be dismissed for lack of a writing, where that defense is raised on preliminary objections;
2. Whether a complaint, which alleges an oral agreement by a client to compensate a law firm based on the reasonable value of its services, with the final determination of that value to be based in part on whether the firm achieves a favorable result, fails to state a cause of action;
3. Whether a contingency fee agreement for representation in an equitable distribution proceeding, where the client had already obtained a divorce at the time that he retained the law firm, is unenforceable based upon Ethical Consideration 2-20 of the Code of Professional Responsibility or public policy;
4. Whether the lower court’s order granting the demurrer and dismissing the complaint with рrejudice should be affirmed on any grounds?
Because we reverse on appellants’ second issue, we need not consider the other issues raised in this proceeding.
Appellants are partners in the Delaware County law firm of Eckell, Sparks, Levy, Auerbach, Monte and Moses. Appellee/client, William Wilson, retained the law firm to represent him in his equitable distribution suit agаinst his former spouse. In their complaint, appellants averred that they entered into a fee arrangement with Wilson whereby Wilson would pay the firm based upon the reasonable value of the services rendered. The arrangement also included a *135 provision for appellee to pay appellants a minimum fee based on hourly rates on accоunt during the pendency of the litigation, with the final fee to be determined at the conclusion of the litigation based upon the reasonable value of their services, based in part on whether a favorable result was achieved. Complaint, paragraph 6. The complaint additionally averred that appellants rendered their professional services аnd were able to accomplish results favorable to Wilson. Complaint, paragraph 10. The attorneys allege that the settlement between appellee and his wife resulted in a net savings to appellee of at least $3.5 million. Complaint, paragraph 12.
Appellants further alleged that the law firm sent a bill to appellee in the amount of $150,000 at the conclusion of the litigation. This amount represents professional services rendered less amounts appellee already paid the firm. In to to, appellants alleged that appellee owes the firm $121,-498.90. Complaint, paragraphs 13, 14. Appellants also aver that, although the firm has demanded payment, appellee has refused such payment.
We note initially thаt our standard of review in an appeal from an order sustaining preliminary objections in the nature of a demurrer is the same as that which the trial court employs: all material facts set forth in the complaint as well as all inferences reasonably deducible therefrom are admitted as true for the purposes of review.
Kyle v. McNamara & Criste,
Appellants argue that the lower court erred in characterizing the fee arrangement in question as an illegal contingency fee agreement under the now repealed Code of Professional Responsibility. To the contrary, appellee/client argues that although most contingent fees are either calculated based on a fоrmula or provide for a specific sum of money to be paid, this arrangement is also a contingency agreement because it is dependent on the success at trial. 1 The lower court found that the agreement, as alleged, constituted a contingency fee. The trial judge reasoned:
If, as the plaintiffs [appellants] contend, there was an oral agreement which required payment based upon the degree of success encountered during the equitable distribution proceeding, then, by definition, the plaintiffs’ [appellants’] agreement with defendant [appellee] was contingent in nature.
Lower court opinion 12/17/90 at 3. The lower court then concluded that the agreement was void under Pa.R.Civ.P. *137 Rule 202, 42 Pa.C.S.A. (rescinded April 4, 1990, effective July 1, 1990), 2 and Code of Professional Responsibility, Ethical Considerations 2-19, 2-20, 42 Pa.C.S.A. (superseded by Rules of Professional Conduct, 42 Pa.C.S.A., effective April 1, 1988). 3 Rule 202 and Ethical Considerations 2-19 and 2-20 were in effect at the time the purported fee arrangement was made.
Contingency agreements have been defined in various forms. The Pennsylvania Rules of Professional Conduct charaсterize a contingency fee in the following manner:
A fee may be contingent on the outcome of the matter for which the service is rendered, except in a manner in which a contingent fee is prohibited by paragraph (d) or other law.
Rule of Professional Conduct, Rule 1.5(c), 42 Pa.C.S.A. While caselaw defining a contingency fee is lacking in Pennsylvania, we find it instructive to cоnsider the pronouncements of the Supreme Judicial Court of Massachu *138 setts which has defined a contingent fee agreement between an attorney and client as,
an agreement express, or implied, for legal services ... under which compensation, contingent in whole or in part upon the successful accomplishment or disposition of the subject mattеr of the agreement, is to be in an amount which either is fixed or is to be determined under a formula____
New England Telephone & Telegraph Company v. Board of Assessors of Boston,
While ostensibly the fee arrangement in the instant case is contingent in nature, a closer analysis leads us to conclude otherwise. We are guided in this decision by the analyses of various courts of our sister states which have previously had occasion to construe the type of agreement at issue here.
See, e.g., Muldoon v. West End Chevrolet,
The Massachusetts Supreme Judicial Court affirmed on appeal holding:
Such an arrangement is a usual and proper arrangement between lawyer and client and means that the lawyer’s services, if they have any valuе at all, are to be paid for *139 in some amount in any event and that their fair market value is to be computed, after the services have been rendered, by an appraisal of the services in the light of all relevant circumstances. Certainly, ... the importance, size and difficulty of the matter involved, and the attorney’s success in dealing with them, are among the relevant сonsiderations.
Id.
at 95,
A more recent Illinois decision also concluded that a fee arrangement which determines the final fee based on the outcome of the case is not a contingency fee. In
Marriage of Malec, supra,
an attorney and his former partner entered into an agreement with John Malee, the petitioner, to represent Malec in his marriage dissolution.
Marriage of Malec,
A recent New Jersey decision also discussed the type of arrangement at issue here. In Salerno v. Salerno, supra, *140 an attorney entered into a fee arrangement in a domestic action which recited the following:
1. you hereby agree to pay our firm a non-refundable minimum retainer fee of $2,500. The minimum fee will be credited against the legal services and court costs and disbursements in your matter as they accrue. If the services rendered by me are completed in less than — hours, I will retain the full retainer as a minimum fee.
2. The final billing is based on four factors: (1) the basic hourly rate (b) the result accomplished; (c) the amount in controversy; and (d) our experience and ability, all of which will be taken into consideration when the final bill is issued and none of which is solely determinative of the fee.
Id.
at 541,
Finally, in
Head v. Head, supra,
*141 [T]he fee was not directly related by percentage or formula to the amount recovered or protected. Additionally, it failed to meet the generally accepted twofold purpose of a contingent fee. Not only could the parties clearly afford to retain the services of сounsel on a fixed fee or hourly rate, but the successful resolution of the claim ... would not produce a res out of which the fee could be paid. There could be no res produced. The funds at issue were already in possession. It was the shielding of those funds from appellant’s claim that was at issue.
Id.
at 668-69,
After carefully considering the facts of the instant case, we agree with the majority of courts which concluded that an agreement whiсh fixes a final fee based on the value of services rendered through the representation is a proper method of fixing a fee and is not a contingent fee in its commonly used meaning. 5 In this situation, the fee is not truly contingent on the outcome of the case because the attorneys are paid regardless of the outcome of the litigation. In essence, they are exacting a fee based on their performance during the course of the litigation. A contingency fee agreement carries a risk that an attorney will not be paid if the outcome of the litigation is unsuccessful. No such risk is found here. Our Rules of Professional Conduct support such a result. 6 The Pennsylvania Rules of Professional Conduct, Rule 1.5 states in pertinent part:
*142 (a) A lawyer shall not enter into a fee arrangement for, charge, or collect an illegal or clearly excessive fee. The factors to be considered in determining the propriety of a fee include the following:
(1) whether the fee is fixed or contingent;
(2) the time and labor required, the novelty and difficulty of the questions involved, and the skill requisite to perform the legal services properly;
(3) the likelihоod, if apparent to the client, that the acceptance of the particular employment will preclude other employment by the lawyer;
(4) the fee customarily charged in the locality for similar legal services;
(5) the amount involved and the results obtained;
(6) the time limitations imposed by the client or by the circumstances;
(7) the nature and the length of the professional relationship with the client; аnd
(8) the experience, reputation, and ability of the lawyer or lawyers performing the services.
Pa.R.Prof.Conduct, Rule 1.5; Code of Professional Responsibility, DR 2-106(B). We decline to follow the New Jersey court decision in Salerno, supra. While this type of fee arrangement is seemingly characteristic of a contingency agreement, the New Jersey court failed to recognize that thе agreement merely seeks a quantum meruit fee based on the reasonable value of the services rendered. 7 We *143 therefore, vacate the order granting appellee’s preliminary objections and reinstate appellant’s complaint.
Order of November 19, 1990 vacated; complaint reinstated. Remanded for proceedings consistent with this memorandum; jurisdiction relinquished.
Notes
. Appellee also argues that appellants sent a lettеr to appellee confirming the agreement between them. He argues that the parol evidence rule bars appellants from alleging a prior oral agreement which contradicts the terms of the writing. The contents of the writing were attached to the pleadings as part of an affidavit.
Our standard of review precludes us from analyzing the letter. It is well-settled thаt a demurrer cannot be a "speaking demurrer" and cannot be used to supply a fact missing in the complaint.
Hall v. Goodman,
. Rule 202 provided that agreements between attorney and client relating to cоmpensation wholly or partly on a contingent basis shall be in writing.
. Code of Professional Responsibility, Ethical Consideration 2-19 provided "it is usually beneficial to reduce to writing the understanding of the parties regarding the fee, particularly where it is contingent.” Code of Professional Responsibility, Ethical Consideration 2-20 provided that because of the human relationships involved and the unique character of the proceedings, contingent fee arrangements in domestic relation cases are rarely justified. However, the ethical considerations are aspirational in character and represent the objectives toward which every member of the profession should strive. Code of Professional responsibility, Preamble and Preliminary Statement, 42 Pa.C.S.A. (rescinded effective April 1, 1988). They are not mandatory laws.
The trial judge also found that the conduct of the appellants may have violated Rule of Professional Conduct, Rule 1.5(c), 42 Pa.C.S.A. for failing to set forth a contingency fee agreement in writing. We note that because the purported agreement was entered into, in 1984, while the Code of Profеssional responsibility was in effect, the Code governs the present case. Rules of Professional Conduct, Publisher’s Note, 42 Pa.C.S.A. (professional misconduct occurring on or before March 31, 1988 is governed by the Code of Professional Responsibility).
. The Illinois Court of Appeals held that the fee arrangement was not a contingency fee because it was based upon thе reasonableness of the services rendered. However, it additionally held that a subsequent agreement between the petitioner and one of the lawyers permitting a $1 million fee if certain particularized results were achieved in the underlying litigation, transformed what was otherwise a legitimate fee arrangement into a contingency fee. Id.
. Since we find that the arrangement at issue here is not a contingency fee arrangement, it is not subject to Pa.R.Civ.P. Rule 202, 42 Pa.C.S.A. (rescinded), which requires contingent fee agreements be set forth in a writing, or Code of Professional Responsibility, EC 2-20, 42 Pa.C.S.A., which disapproves of contingent fee agreements in domestic relations actions.
. While the current Rules of Professional Conduct were not in effect аt the time of this transaction, the rules are helpful in determining the current state of the law in this Commonwealth. Moreover, we believe that the Rules of Professional Conduct would require the same result. The Rules only require a writing where an attorney enters into a contingency fee agreement with the client. Pa.Rules of Professional Conduct, Rule 1.5(c), 42 Pa.C.S.A.
However, we alert aрpellants to the exigency of a writing to confirm the fee arrangement with the client. In this regard, writings avoid *142 misunderstandings regarding the fee and the methods by which it is determined. Pa.Rules of Professional Conduct, Rule 1.5, comment, 42 Pa.C.S.A. (a written statement concerning the fee reduces the possibility of misunderstanding).
. It is incumbent upon the trial court to determine whether the fee which counsel exaсts is reasonable in light of all factors enumerated . in Rule of Professional Responsibility, Rule 1.5, 42 Pa.C.S.A., or in the Code of Professional Conduct DR 2-106, 42 Pa.C.S.A. If the court does not scrutinize the fee under a reasonableness standard, a danger exists that a client may be subject to an attorney's overreaching because the attorney would be permitted to set the fee arbitrarily and unilaterally.
