Tax Law · MOFU

Tax credit recovery: what a company can reclaim

By Dr. Wendel Ferreira Lopes, OAB/MG 18.881 · Published on July 9, 2026

Capa do artigo sobre recuperação de créditos tributários e como empresas reavem valores pagos indevidamente ao Fisco — WF Advogados.

Tax credit recovery: what a company can reclaim

Quick answer: tax credit recovery means reclaiming amounts a company paid in excess or improperly to the tax authorities. The law guarantees this right through refund or offset, within a five-year period counted from payment. The path depends on the tax, the applicable thesis, and the company's tax situation.

The scene repeats itself at the close of the accounting year. The accountant cross-checks the year's payments and notices that the company had been calculating PIS and Cofins on a base larger than the law allows, or that it paid a tax form twice and never reclaimed it, or that it paid on an operation that was exempt. The money left the cash and stayed with the tax authorities. The question that follows is always the same: can it be recovered?

It can, and the law is clear about it. Whoever pays an undue or excessive tax has the right to reclaim the amount, with monetary correction. What separates the company that recovers from the one that loses the credit is not the existence of the right, but the deadline and the path chosen. Tax credits lapse, and each tax has a more suitable route for recovery.

This text explains what can be recovered, in how long the right is extinguished, and why refund and offset are not the same thing.

What tax credit recovery is

Tax credit recovery is the set of procedures that allows a company to reclaim amounts paid to the tax authorities that were not due, or paid beyond what the legislation required. The technical name of the central legal institute is repetição de indébito (recovery of an undue payment). Indébito is the payment that was not due; repetição is the act of reclaiming it.

The right is set out in the National Tax Code (Código Tributário Nacional — Lei 5.172/1966). Article 165 guarantees the taxpayer the refund of a tax paid improperly or in excess, whatever the form of payment, regardless of prior protest. It does not matter whether the error came from the taxpayer or from a mistaken charge by the tax authorities: if you paid what you did not owe, you have the right to reclaim it.

A distinction is worth making to avoid frustration. Recovering a tax credit is not getting a discount, nor is it a tax benefit. It is the return of money that already belonged to the company and improperly stayed with the State. That is why the amount comes back corrected, and it is no one's favor.

What can be recovered

In practice, what opens room for recovery usually falls into a few recurring situations. Double payment of the same tax form. A rate error, when the company applies a percentage higher than the one provided for. An error in the calculation base, when it includes in the computation a portion the law requires to be excluded. Payment on an exempt or non-taxed operation. And the group most relevant in value, the tax thesis: a legal dispute in which the courts recognize that a given charge was unconstitutional or illegal.

The best-known example of a thesis is the exclusion of ICMS from the calculation base of PIS and Cofins, decided by the Supremo Tribunal Federal (Brazil's Federal Supreme Court) in the judgment of Tema 69 (RE 574.706). Companies that paid these contributions with ICMS embedded in the base overpaid for years and gained the right to recover the difference. It is not the only case. Charges on amounts that should not compose the base, credits disallowed without grounds, taxes declared unconstitutional: each thesis opens a recovery front for those who fit it.

Refund, offset, and reimbursement

Once the credit is recognized, it comes back through one of three paths. The choice is not free in every case, and each route has practical consequences for timing and cash flow.

RouteWhat it isWhen it makes sense
Refund (restituição)Return of the amount in cash, by deposit or precatório (a court-ordered payment order against the public treasury)Company with no debts to offset, or credit recognized in court
Offset (compensação)Use of the credit to settle the company's own future taxesCompany with current payments to the same agency (Receita Federal)
Reimbursement (ressarcimento)Return of accumulated book credits (e.g., IPI, non-cumulative regimes)Credit balance that could not be offset within the company's own bookkeeping

At the federal level, offset is governed by article 74 of Lei 9.430/1996. Under it, the assessed credit, including one recognized in a court decision that has become final and unappealable (transitada em julgado), can be used to settle the company's own debts for taxes administered by the Receita Federal (Brazil's Federal Revenue Service). Offset is done through an electronic declaration, the PER/DCOMP, in which the company reports the credit and the debts it is offsetting.

Offset tends to be faster than a cash refund, because it does not depend on the precatório queue. That is why it is the preferred path for those with a current tax burden. But there are limits. For credits from a court decision of high value, Lei 14.873/2024 began to require that the offset be staggered into monthly installments, so that very high credits are not consumed all at once. Planning the order and pace of the offset has become part of the work.

The five-year deadline

Here is the point that costs companies the most money. The right to request a refund is not eternal. Article 168 of the CTN establishes that it is extinguished in five years. Once that period passes, the credit still exists, but it can no longer be reclaimed.

The counting has a rule that causes confusion. For taxes subject to lançamento por homologação (self-assessment later confirmed by the authorities), which are most of those the company pays on its own account (PIS, Cofins, IRPJ, CSLL, contributions), Lei Complementar 118/2005 set that the five years run from the advance payment. In other words, each tax form paid improperly has its own five-year clock. The credit from a July 2021 accrual period is lost in July 2026, even though the period next to it remains recoverable.

The practical effect is that recovery always has a moving window. With each month that passes, the oldest period falls out of the deadline and a new one enters. Those who postpone the analysis do not lose the entire right at once; they lose the oldest edges, month by month. That is why a credit diagnosis is not a matter for "when there's time to spare."

If the administrative request for a refund is denied, there is still a second window. Article 169 of the CTN gives a two-year period to file the annulment action against the decision that denied the refund. It is a short and independent deadline, not to be confused with the initial five years.

Administrative route and judicial route

Recovery can follow two tracks. On the administrative route, the company formalizes the refund request or the offset declaration directly before the Receita Federal, through its own systems. It works well when the credit is liquid and uncontroversial, such as a double payment or an obvious arithmetic error.

When the credit depends on a thesis, the path is usually judicial. The Superior Tribunal de Justiça (Brazil's Superior Court of Justice) has already settled that the mandado de segurança (writ of mandamus, a Brazilian constitutional remedy) is the proper action for a company to obtain the declaration of the right to tax offset (Súmula 213 — a consolidated case-law statement of the court). And, once the undue payment is recognized by a judgment that has become final and unappealable, the company may choose between receiving through precatório or offsetting the amount (Súmula 461). This choice carries weight: it determines whether the money enters the cash or reduces future taxes.

There is a technical caution that avoids an assessment. The mandado de segurança serves to declare the right to offset, not to validate an offset the company has already carried out on its own (Súmula 460). Offsetting first and arguing later is one of the most common causes of disallowance, with a fine on the amount not confirmed. The credit reappears as a liability precisely when the procedure was rushed.

As for the correction, the federal undue payment comes back updated by the Selic rate (Brazil's benchmark interest rate), accumulated from the improper payment, under article 39, paragraph 4, of Lei 9.250/1995. In old credits, this update is significant and makes up a relevant part of the amount to recover.

Recovering without creating a new liability

Tax credit recovery seems like a topic only about "finding money," but the risk lies in execution. A poorly assessed credit, a thesis applied to someone who does not fit it, an offset made outside the rule: each of these errors turns a right into an assessment. The amount that would enter the cash becomes fine and interest.

That is why recovery goes hand in hand with tax planning. Diagnosing what was overpaid, choosing between refund and offset, respecting the deadline of each period, and conducting the proper route is technical work, and it is the core of WF Advogados' tax defense practice. Understanding what a tax attorney does in this process helps to gauge when it is worth involving the firm.

The most common error we see is the company that discovers the credit late, with periods already expired, or that offsets on its own and later receives the disallowance. Recovering well means recovering with method and within the deadline.


Informative content; it does not replace individual legal advice. Each case has particularities that require specific analysis.

Dr. Wendel Ferreira Lopes — Attorney, OAB/MG nº 18.881. Founding partner of WF Advogados, practicing in Tax, Banking, and Estate/Succession Law since 1999. Uberlândia/MG.

Frequently Asked Questions

What is tax credit recovery?

It is the procedure to reclaim from the Receita or the tax authorities amounts the company paid in excess or improperly. The central legal institute is the repetição de indébito (recovery of an undue payment), provided for in article 165 of the National Tax Code. The credit comes back through a cash refund or through offset against future taxes.

What is the deadline to recover tax credits?

Five years, counted from payment. Article 168 of the CTN sets this deadline, and Lei Complementar 118/2005 established that, for taxes assessed by homologation, the counting begins at the advance payment of each period. In practice, each tax form paid has its own five-year window.

What is the difference between refund and offset?

In a refund, the company receives the amount back in cash. In an offset, it uses the credit to reduce taxes it would have to pay. Offset is usually faster because it does not depend on a precatório, but it requires current payments to the same agency and must follow the rules of article 74 of Lei 9.430/1996.

Which taxes can be recovered?

As a rule, any tax paid improperly or in excess. It is common with PIS, Cofins, IRPJ, CSLL, ICMS, ISS, and contributions, whether from an error in the calculation base or the rate, or from a thesis recognized by the courts, such as the exclusion of ICMS from the base of PIS and Cofins (Tema 69 of the STF).

Can the company offset the credit on its own?

It can declare the offset through the PER/DCOMP when the credit is liquid and certain. But offsetting a credit still under dispute, or applying a thesis without due recognition, exposes the company to disallowance and a fine. The mandado de segurança serves to declare the right to offset, not to validate an offset already made (Súmula 460 of the STJ).

Does the recovered amount come back corrected?

Yes. At the federal level, the undue payment is updated by the Selic rate from the improper payment, under article 39, paragraph 4, of Lei 9.250/1995. In old credits, the correction represents a relevant portion of the total to receive.

Do I need a court decision to recover a credit?

Not always. A liquid and uncontroversial credit, such as a double payment, can be requested through the administrative route. When recovery depends on a legal thesis, the path is usually judicial, with the mandado de segurança recognized by Súmula 213 of the STJ as the proper action.

What happens if I miss the five-year deadline?

The oldest periods fall out of the deadline and the credit relating to them can no longer be reclaimed. The right does not vanish all at once: each month, the oldest period lapses. That is why an early diagnosis preserves value that, once postponed, is lost month by month.