<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.21.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>11</ContextCount>
  <ElementCount>170</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>10</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="c485bpos.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>01001 - Document - Document and Entity Information {Elements}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://troweprice.com/20210228/role/DocumentAndEntityInformation1</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory></MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="c485bpos.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>true</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>01002 - Document - Risk/Return Summary (T. Rowe Price Tax-Free Income Fund, Inc.) {Unlabeled}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://troweprice.com/20210228/role/RRSummary2</Role>
      <ShortName>Risk/Return Summary (T. Rowe Price Tax-Free Income Fund, Inc.)</ShortName>
      <MenuCategory></MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="c485bpos.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>01003 - Disclosure - Risk/Return Detail Data (T. Rowe Price Tax-Free Income Fund, Inc.) {Elements}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://troweprice.com/20210228/role/RRDetailData3</Role>
      <ShortName>Risk/Return Detail Data (T. Rowe Price Tax-Free Income Fund, Inc.)</ShortName>
      <MenuCategory></MenuCategory>
      <Position>3</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="485BPOS" original="c485bpos.htm">c485bpos.htm</File>
    <File>c485bpos-20210628.xsd</File>
    <File>c485bpos-20210628_cal.xml</File>
    <File>c485bpos-20210628_def.xml</File>
    <File>c485bpos-20210628_lab.xml</File>
    <File>c485bpos-20210628_pre.xml</File>
    <File>ex99gcustagreemt-cust1.htm</File>
    <File>ex99hothmatcont-ela1.htm</File>
    <File>ex99hothmatcont-fa1.htm</File>
    <File>ex99hothmatcont-fa2.htm</File>
    <File>ex99hothmatcont-fa3.htm</File>
    <File>ex99hothmatcont-trsf1.htm</File>
    <File>ex99jotheropinin-opin1.htm</File>
    <File>ex99jotheropinin-poa.htm</File>
    <File>ex99jotheropinin-pwc.htm</File>
    <File>ex99pcodeeth-code.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img_314d3f9d24b34f2.jpg</File>
    <File>img_68296e8897784f3.jpg</File>
    <File>img_a26e267ef65e4f2.jpg</File>
    <File>img_a9dfa18434cd4f1.jpg</File>
    <File>img_de8cd4f9e7e04f2.jpg</File>
    <File>img_f3654eaf6ffe4f2.jpg</File>
    <File>img_f95115b9e9354f1.jpg</File>
    <File>img_fd7e6f59b27a4f3.jpg</File>
    <File>img_fff3a0920fbb4f2.jpg</File>
    <File>BarChart1.png</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/rr/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
