    <SEC-DOCUMENT>0000277948-25-000043-index.html : 20250723
    <SEC-HEADER>0000277948-25-000043.hdr.sgml : 20250723
    <ACCEPTANCE-DATETIME>20250723160127
    ACCESSION NUMBER:		0000277948-25-000043
    CONFORMED SUBMISSION TYPE:	8-K
    PUBLIC DOCUMENT COUNT:		18
    CONFORMED PERIOD OF REPORT:	20250723
    ITEM INFORMATION:		Results of Operations and Financial Condition
    ITEM INFORMATION:		Financial Statements and Exhibits
    FILED AS OF DATE:		20250723
    DATE AS OF CHANGE:		20250723

    FILER:

    	COMPANY DATA:
    		COMPANY CONFORMED NAME:			CSX CORP
    		CENTRAL INDEX KEY:			0000277948
    		STANDARD INDUSTRIAL CLASSIFICATION:	RAILROADS, LINE-HAUL OPERATING [4011]
    		ORGANIZATION NAME:           	01 Energy & Transportation
    		EIN:				621051971
    		STATE OF INCORPORATION:			VA
    		FISCAL YEAR END:			1231

    	FILING VALUES:
    		FORM TYPE:		8-K
    		SEC ACT:		1934 Act
    		SEC FILE NUMBER:	001-08022
    		FILM NUMBER:		251143068

    	BUSINESS ADDRESS:
    		STREET 1:		500 WATER STREET
    		STREET 2:		15TH FLOOR
    		CITY:			JACKSONVILLE
    		STATE:			FL
    		ZIP:			32202
    		BUSINESS PHONE:		9043593200

    	MAIL ADDRESS:
    		STREET 1:		500 WATER STREET
    		STREET 2:		15TH FLOOR
    		CITY:			JACKSONVILLE
    		STATE:			FL
    		ZIP:			32202
    </SEC-HEADER>
    <DOCUMENT>
    <TYPE>8-K
    <SEQUENCE>1
    <FILENAME>csx-20250723.htm
    <DESCRIPTION>8-K
    <TEXT>
    Document 1 - file: csx-20250723.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-99.1
    <SEQUENCE>2
    <FILENAME>pressrelease_q22025.htm
    <DESCRIPTION>EX-99.1 - PRESS RELEASE
    <TEXT>
    Document 2 - file: pressrelease_q22025.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-99.2
    <SEQUENCE>3
    <FILENAME>qfr_q22025.htm
    <DESCRIPTION>EX-99.2 - QFR
    <TEXT>
    Document 3 - file: qfr_q22025.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.SCH
    <SEQUENCE>4
    <FILENAME>csx-20250723.xsd
    <DESCRIPTION>XBRL TAXONOMY EXTENSION SCHEMA DOCUMENT
    <TEXT>
    Document 4 - file: csx-20250723.xsd

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.LAB
    <SEQUENCE>5
    <FILENAME>csx-20250723_lab.xml
    <DESCRIPTION>XBRL TAXONOMY EXTENSION LABEL LINKBASE DOCUMENT
    <TEXT>
    Document 5 - file: csx-20250723_lab.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.PRE
    <SEQUENCE>6
    <FILENAME>csx-20250723_pre.xml
    <DESCRIPTION>XBRL TAXONOMY EXTENSION PRESENTATION LINKBASE DOCUMENT
    <TEXT>
    Document 6 - file: csx-20250723_pre.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>7
    <FILENAME>csx-20250723_g1.jpg
    <TEXT>
    Document 7 - file: csx-20250723_g1.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>8
    <FILENAME>press_releasexbanner.jpg
    <TEXT>
    Document 8 - file: press_releasexbanner.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>9
    <FILENAME>q2_qfrcover2025.jpg
    <TEXT>
    Document 9 - file: q2_qfrcover2025.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>10
    <FILENAME>qfr_header.jpg
    <TEXT>
    Document 10 - file: qfr_header.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>12
    <FILENAME>R1.htm
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 12 - file: R1.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>13
    <FILENAME>Show.js
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 13 - file: Show.js

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>14
    <FILENAME>report.css
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 14 - file: report.css

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>16
    <FILENAME>FilingSummary.xml
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 16 - file: FilingSummary.html

    Document 16 - RAW XML: FilingSummary.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>JSON
    <SEQUENCE>18
    <FILENAME>MetaLinks.json
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 18 - file: MetaLinks.json

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>ZIP
    <SEQUENCE>19
    <FILENAME>0000277948-25-000043-xbrl.zip
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 19 - file: 0000277948-25-000043-xbrl.zip

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>20
    <FILENAME>csx-20250723_htm.xml
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 20 - file: csx-20250723_htm.html

    Document 20 - RAW XML: csx-20250723_htm.xml

    </DOCUMENT>
    </SEC-DOCUMENT>