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

    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
    		IRS NUMBER:				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:		24850943

    	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-20240417.htm
    <DESCRIPTION>8-K
    <TEXT>
    Document 1 - file: csx-20240417.htm

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

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

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

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

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

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

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

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>9
    <FILENAME>q12024_qfrcover.jpg
    <TEXT>
    Document 9 - file: q12024_qfrcover.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>EXCEL
    <SEQUENCE>13
    <FILENAME>Financial_Report.xlsx
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 13 - file: Financial_Report.xlsx

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

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

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

    Document 17 - RAW XML: FilingSummary.xml

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

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>ZIP
    <SEQUENCE>20
    <FILENAME>0000277948-24-000030-xbrl.zip
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 20 - file: 0000277948-24-000030-xbrl.zip

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

    Document 22 - RAW XML: csx-20240417_htm.xml

    </DOCUMENT>
    </SEC-DOCUMENT>