v3.25.3
Shareholder Report
6 Months Ended
Aug. 31, 2025
USD ($)
Holding
Shareholder Report [Line Items]  
Document Type N-CSRS
Amendment Flag false
Registrant Name T. ROWE PRICE STATE TAX-FREE FUNDS, INC.
Entity Central Index Key 0000795384
Entity Investment Company Type N-1A
Document Period End Date Aug. 31, 2025
C000005540  
Shareholder Report [Line Items]  
Fund Name Maryland Tax-Free Bond Fund
Class Name Investor Class
Trading Symbol MDXBX
Shareholder Report Annual or Semi-Annual Semi-Annual Shareholder Report
Additional Information [Text Block] You can find the fund’s prospectus, financial information on Form N‑CSR (which includes required tax information for dividends), holdings, proxy voting information, and other information atwww.troweprice.com/prospectus. You can also request this information without charge by contacting T. Rowe Price at 1‑800‑638‑5660 or info@troweprice.com or contacting your intermediary.
Material Fund Change Notice [Text Block]  
Additional Information Phone Number 1‑800‑638‑5660
Additional Information Email <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 13.3333px; font-weight: 400; grid-area: auto; line-height: 17.3333px; margin: 0px; overflow: visible; text-align: justify; text-align-last: left; white-space-collapse: preserve-breaks;">info@troweprice.com</span>
Additional Information Website www.troweprice.com/prospectus
Expenses [Text Block]

What were the fund costs for the last six months? (based on a hypothetical $10,000 investment)

 
Costs of a $10,000 investment
Costs paid as a percentage of a $10,000 investment
Maryland Tax-Free Bond Fund - Investor Class
$24
0.49%
Expenses Paid, Amount $ 24
Expense Ratio, Percent 0.49%
AssetsNet $ 2,281,460,000
Holdings Count | Holding 619
InvestmentCompanyPortfolioTurnover 13.80%
Additional Fund Statistics [Text Block]

What are some fund statistics?

Fund Statistics

Total Net Assets (000s)
$2,281,460
Number of Portfolio Holdings
619
Holdings [Text Block]

State Allocation (as a % of Net Assets)

Maryland
90.6%
Puerto Rico
5.3
District of Columbia
3.1
South Carolina
0.1
Other
0.9

Industry Allocation (as a % of Net Assets)

Housing
27.3%
Health Care
21.5
General Obligations - Local
14.0
Transportation
10.2
Special Tax
7.2
Leasing
6.1
Education
4.5
Water & Sewer
3.0
General Obligations - State
2.2
Other
4.0
Material Fund Change [Text Block]
Updated Prospectus Web Address www.troweprice.com/paperless
C000193179  
Shareholder Report [Line Items]  
Fund Name Maryland Tax-Free Bond Fund
Class Name I Class
Trading Symbol TFBIX
Shareholder Report Annual or Semi-Annual Semi-Annual Shareholder Report
Additional Information [Text Block] You can find the fund’s prospectus, financial information on Form N‑CSR (which includes required tax information for dividends), holdings, proxy voting information, and other information atwww.troweprice.com/prospectus. You can also request this information without charge by contacting T. Rowe Price at 1‑800‑638‑5660 or info@troweprice.com or contacting your intermediary.
Material Fund Change Notice [Text Block]  
Additional Information Phone Number 1‑800‑638‑5660
Additional Information Email <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 13.3333px; font-weight: 400; grid-area: auto; line-height: 17.3333px; margin: 0px; overflow: visible; text-align: justify; text-align-last: left; white-space-collapse: preserve-breaks;">info@troweprice.com</span>
Additional Information Website www.troweprice.com/prospectus
Expenses [Text Block]

What were the fund costs for the last six months? (based on a hypothetical $10,000 investment)

 
Costs of a $10,000 investment
Costs paid as a percentage of a $10,000 investment
Maryland Tax-Free Bond Fund - I Class
$21
0.42%
Expenses Paid, Amount $ 21
Expense Ratio, Percent 0.42%
AssetsNet $ 2,281,460,000
Holdings Count | Holding 619
InvestmentCompanyPortfolioTurnover 13.80%
Additional Fund Statistics [Text Block]

What are some fund statistics?

Fund Statistics

Total Net Assets (000s)
$2,281,460
Number of Portfolio Holdings
619
Holdings [Text Block]

State Allocation (as a % of Net Assets)

Maryland
90.6%
Puerto Rico
5.3
District of Columbia
3.1
South Carolina
0.1
Other
0.9

Industry Allocation (as a % of Net Assets)

Housing
27.3%
Health Care
21.5
General Obligations - Local
14.0
Transportation
10.2
Special Tax
7.2
Leasing
6.1
Education
4.5
Water & Sewer
3.0
General Obligations - State
2.2
Other
4.0
Material Fund Change [Text Block]
Updated Prospectus Web Address www.troweprice.com/paperless