delivered the opinion of the Court.
Texas law permits recovery of attorney’s fees for a claim based on an oral or written contract. See Tex. Civ. PRAC. & Rem.Code § 38.001(8). We must determine whether an action for breach of express warranty is such a claim. Because we conclude that it is, we reverse in part the court of appeals’ judgment.
I
Facts and Procedural History
In 1991, Medical City Dallas contracted with Charley Company of Texas to re-roof one of completed, Carlisle issued express warranties to Medical City, one of which— a Twenty Year Membrane Material Warranty — promised that the roof membrane would not deteriorate prematurely. Each express warranty identified Medical City as the building’s owner.
Within months of the installation, Medical City encountered a leak in the building’s roof and Charley Co. repaired it. By 1995, leaks became more frequent, and Charley Co. made more repairs. By 1999, the leaks were “continuous,” and complaints from Medical City’s tenants prompted a meeting in October 2000 with representatives from Charley Co., Medical City, and Carlisle. In November 2000, Medical City retained LRW Consultants, Inc. to evaluate the roof. LRW found “[o]pen lap seams,” “pinholes,” “material defects in the roof membrane,” and “premature aging of the material.” LRW concluded that the roof was “in extremely poor condition” and recommended that Medical City contact the manufacturer to discuss warranty issues. After failed attempts to resolve the dispute, Medical City sued Charley Co. and Carlisle, alleging breach of the express warranties, breach of implied warranties, and negligence. It sought direct costs incurred in replacing the roof in October 2002, attorney’s fees, and costs. The trial court granted Carlisle summary judgment on the negligence claim.
A jury returned a verdict in favor of Medical City, finding that Carlisle breached its Twenty Year Membrane Warranty, and awarded Medical City $110,449.59 in damages and $121,277.04 in attorney’s fees. 1 Carlisle moved for judgment notwithstanding the verdict, but the trial court denied the motion and signed a judgment for Medical City. Carlisle appealed.
*58
On the attorney’s fees issue, the court of appeals held that Texas Civil Practice and Remedies Code section 38.001(8), which allows fees for claims based on oral or written contracts, did not encompass breach of warranty claims.
II
Discussion
A party who prevails in a lawsuit is entitled to recover attorney’s fees only if permitted by statute or by contract.
Tony Gullo Motors I, L.P. v. Chapa,
A
Historical Background
Nearly 100 years ago, the Texas Legislature created a statutory right to attorney’s fees for judgments in select claims. See Act of March 13, 1909, 31st Leg., R.S., ch. 47, § 1, 1909 Tex. Gen. Laws 93, 94 (creating a right to a “reasonable amount” of attorney’s fees, limited to twenty dollars, for persons obtaining judgment for the full amount of their claim in actions for “personal services rendered or for labor done, or for material furnished, or for overcharges on freight or express, or for any claim for lost or damaged freight, or for stock killed or injured”). Over time, the statute has been modified to expand the types of claims eligible for an award of fees. It was amended in 1923 to allow fees for loss of or damage to express shipments. See Act of March 26, 1923, 38th Leg., R. S., ch. 144, § 1, 1923 Tex. Gen. Laws 312, 312. In 1949, it was amended to allow attorney’s fees upon a judgment “for any amount” recovered. See Act of June 29,1949, 51st Leg., R.S., ch. 494, § 1, 1949 Tex. Gen. Laws 915, 915. Four years later, the Legislature extended article 2226 to “suits founded upon a sworn account or account.” See Act of April 21, 1953, 53d Leg., R.S., ch. 67, § 1, 1953 Tex. Gen. Laws 101, 101. As the statute evolved, so did Texas jurisprudence.
In 1958, we held that a contract for the drilling of an oil well was not an action on a sworn account and thus disallowed attorney’s fees under article 2226.
Meaders v. Biskamp,
The modern era began in 1977, when the Legislature added “suits founded on oral or written contracts” to the claims for which recovery of attorney’s fees was authorized. See Act of April 25, 1977, 65th Leg., R. S., ch. 76, § 1, 1977 Tex. Gen. Laws 153, 153-54. This modification brought the statute in line with the Legislature’s decision, four years earlier, to make fees recoverable by consumers who successfully pursued similar actions under Texas’ Deceptive Trade Practices Act (“DTPA”). See Act of May 21, 1973, 63d Leg., R.S., ch. 143, § 1, sec. 17.50, 1973 Tex. Gen. Laws 322, 326-27 (creating the remedy of attorney’s fees for the first time for consumers prevailing in an action on an “express or implied warranty”) (current version at Tex. Bus. & Com.Code § 17.50(d) (“Each consumer who prevails shall be awarded court costs and reasonable and necessary attorney’s fees.”)). Two years after authorizing attorney’s fees for suits founded on contract, the Legislature instructed courts to construe the statute liberally “to promote its underlying purposes.” See Act of June 6, 1979, 66th Leg., R.S., ch. 314, § 1, 1979 Tex. Gen. Laws 718, 718.
Finally and most recently, the statute was recodified in a “topic-by-topic revision of the state’s general and permanent statute law without substantive change.” See Act of 1985, 69th Leg., R.S., ch. 959, § 1, secs. 1.001, 38.001, 38.005, 1985 Tex. Gen. Laws 3242, 3244, 3278, 3279 (current version at Tex. Civ. PRAC. & Rem.Code §§ 1.001, 38.001, and 38.005). 2 Thus, section 38.001 now provides:
A person may recover reasonable attorney’s fees from an individual or corporation, in addition to the amount of a valid claim and costs, if the claim is for:
(1) rendered services;
(2) performed labor;
(3) furnished material;
(4) freight or express overcharges;
(5) lost or damaged freight or express;
(6) killed or injured stock;
(7) a sworn account; or
(8) an oral or written contract.
Tex. Civ. Prac. & Rem.Code § 38.001.
B
Breach of Express Warranty Actions
The Uniform Commercial Code (UCC) governs Medical City’s express warranty claim.
3
See
Tex. Bus. & Com.Code § 2.313. However, the UCC sections and comments dealing with remedies for breach of warranty, adopted verbatim in Texas, are silent on the issue of attorney’s fees.
See, e.g.,
Tex. Bus. & Com.Code §§ 2.714-.715 and cmt. (providing for consequential damages to a buyer in a breach of warranty action but failing to indicate in the comment whether attorney’s fees are
*60
considered either consequential or incidental damages). At least one court has held that attorney’s fees may be recovered under the UCC as consequential damages.
See Kelynack v. Yamaha Motor Corp.,
Section 38.001 of the Civil Practice and Remedies Code is such a statute, and because Texas’ UCC provisions and the parties’ warranties are silent on the issue, section 38.001 provides the only basis for an award of attorney’s fees here. We thus examine the nature of the claim to determine whether an express warranty claim is a suit based on an oral or written contract.
Carlisle correctly asserts that breach of warranty and breach of contract are distinct causes of action with separate remedies.
See, e.g.,
Tex. Bus. & Com.Code §§ 2.711, 2.714 (providing remedies for breach of contract and breach of warranty respectively).
4
We held as much in
Southwestern Bell Telephone Co. v. FDP Corp.,
Moreover, the damages recoverable here support our conclusion that the claim is based in contract. Under the economic loss rule, the nature of the injury helps determine which duty or duties are breached and, ultimately, which damages are appropriate: “When the injury is only the economic loss to the subject of a contract itself, the action sounds in contract.”
Am. Nat. Petroleum Co. v. Transcon. Gas Pipe Line Corp.,
It is not surprising, then, that we have previously suggested that attorney’s fees are recoverable when an express warranty is breached.
See PPG Indus., Inc. v. JMB/Houston Ctrs. Partners L.P.,
146 5.W.3d 79, 92 (Tex.2004). In
PPG,
we held that a jury’s answers to two express warranty questions would support recovery of actual damages and attorney’s fees despite the fact that the warranty claims did not fall under the DTPA.
Id.
Here, the court of appeals focused on our statement in
PPG
that “attorney’s fees ... were recoverable in contract and warranty long before the DTPA was passed,”
id.
at 89, but concluded that, because
PPG
involved “the assignability of DTPA claims, ... [the] statement regarding attorney’s fees [was] dictum,”
The only cases to hold that breach of express warranty is not founded on contract for the purposes of an award of attorney’s fees are unpersuasive.
See JHC Ventures, L.P. v. Fast Trucking, Inc.,
*63 IV
Conclusion
Because Texas Civil Practice and Remedies Code section 38.001(8) permits an award of attorney’s fees for a suit based on a written or oral contract, and because we conclude that breach of an express warranty is such a claim, the court of appeals erred in reversing Medical City’s attorney’s fees award in connection with its successful claim for breach of an express warranty. Accordingly, we reverse in part the court of appeals’ judgment and reinstate the trial court’s judgment. See Tex. R.App. P. 60.2(c).
Notes
. The jury awarded Medical City attorney’s fees for preparation and trial of Medical City’s breach of warranty claims but did not award any amount for attorney’s fees on appeal.
. According to section 1.001(b), the purpose of the statutory revision was:
to make the law encompassed by this code more accessible and understandable, by:
(1) rearranging the statutes into a more logical order;
(2) employing a format and numbering system designed to facilitate citation of the law and to accommodate future expansion of the law;
(3) eliminating repealed, duplicative, unconstitutional, expired, executed, and other ineffective provisions; and
(4) restating the law in modern American English to the greatest extent possible.
Tex Civ. Prac. & Rem.Code § 1.001.
. Because the transaction here involved a sale of goods, the Uniform Commercial Code ("UCC”), as adopted in Texas’ Business and Commerce Code, applies. See Tex Bus. & Com.Code §§ 2.101 — .725.
.
But see also Jones v. George,
.
See also Ex parte Miller,
. Attorney’s fees were not generally available for contract and warranty actions before the DTPA. Still, attorney’s fees were authorized for those contracts covering the types of claims listed in the attorney’s fees statute since 1909-claims for personal services rendered, labor done, material furnished, lost or damaged freight, or stock killed or injured.
See Tenneco Oil Co.,
