<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>204</ContextCount>
  <ElementCount>234</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>70</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - CONSOLIDATED INCOME STATEMENTS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedIncomeStatementsUnaudited</Role>
      <ShortName>CONSOLIDATED INCOME STATEMENTS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001001 - Statement - CONSOLIDATED COMPREHENSIVE INCOME STATEMENTS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedComprehensiveIncomeStatementsUnaudited</Role>
      <ShortName>CONSOLIDATED COMPREHENSIVE INCOME STATEMENTS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003000 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003501 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - CONSOLIDATED CASH FLOW STATEMENTS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedCashFlowStatementsUnaudited</Role>
      <ShortName>CONSOLIDATED CASH FLOW STATEMENTS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1004000 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1004501 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Nature of Operations and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/NatureOfOperationsAndSignificantAccountingPolicies</Role>
      <ShortName>Nature of Operations and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Share-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ShareBasedCompensation</Role>
      <ShortName>Share-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Casualty, Environmental and Other Reserves</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/CasualtyEnvironmentalAndOtherReserves</Role>
      <ShortName>Casualty, Environmental and Other Reserves</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Debt and Credit Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/DebtAndCreditAgreements</Role>
      <ShortName>Debt and Credit Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/Revenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/OtherComprehensiveIncomeLoss</Role>
      <ShortName>Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Summarized Consolidating Financial Data</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/SummarizedConsolidatingFinancialData</Role>
      <ShortName>Summarized Consolidating Financial Data</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Nature of Operations and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/NatureOfOperationsAndSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Nature of Operations and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.csx.com/role/NatureOfOperationsAndSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2302301 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/EarningsPerShare</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Share-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ShareBasedCompensationTables</Role>
      <ShortName>Share-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/ShareBasedCompensation</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Casualty, Environmental and Other Reserves (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/CasualtyEnvironmentalAndOtherReservesTables</Role>
      <ShortName>Casualty, Environmental and Other Reserves (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/CasualtyEnvironmentalAndOtherReserves</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/Leases</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/EmployeeBenefitPlans</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Debt and Credit Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/DebtAndCreditAgreementsTables</Role>
      <ShortName>Debt and Credit Agreements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/DebtAndCreditAgreements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Revenues (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/RevenuesTables</Role>
      <ShortName>Revenues (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/Revenues</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/FairValueMeasurements</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/OtherComprehensiveIncomeLossTables</Role>
      <ShortName>Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/OtherComprehensiveIncomeLoss</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Summarized Consolidating Financial Data (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/SummarizedConsolidatingFinancialDataTables</Role>
      <ShortName>Summarized Consolidating Financial Data (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.csx.com/role/SummarizedConsolidatingFinancialData</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2401402 - Disclosure - Nature of Operations and Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/NatureOfOperationsAndSignificantAccountingPoliciesDetails</Role>
      <ShortName>Nature of Operations and Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.csx.com/role/NatureOfOperationsAndSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2402402 - Disclosure - Earnings Per Share - Computation of Basic Earnings Per Share, Assuming Dilution (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EarningsPerShareComputationOfBasicEarningsPerShareAssumingDilutionDetails</Role>
      <ShortName>Earnings Per Share - Computation of Basic Earnings Per Share, Assuming Dilution (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2402403 - Disclosure - Earnings Per Share - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EarningsPerShareNarrativeDetails</Role>
      <ShortName>Earnings Per Share - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Share-Based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ShareBasedCompensationNarrativeDetails</Role>
      <ShortName>Share-Based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2403403 - Disclosure - Share-Based Compensation - Share-Based Compensation and Related Income Tax Benefit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ShareBasedCompensationShareBasedCompensationAndRelatedIncomeTaxBenefitDetails</Role>
      <ShortName>Share-Based Compensation - Share-Based Compensation and Related Income Tax Benefit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2403404 - Disclosure - Share-Based Compensation - Weighted Average Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ShareBasedCompensationWeightedAverageAssumptionsDetails</Role>
      <ShortName>Share-Based Compensation - Weighted Average Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2403405 - Disclosure - Share-Based Compensation - Fair Value Assumptions for Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/ShareBasedCompensationFairValueAssumptionsForStockOptionsDetails</Role>
      <ShortName>Share-Based Compensation - Fair Value Assumptions for Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Casualty, Environmental and Other Reserves - Schedule of Casualty, Environmental and Other Reserves (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/CasualtyEnvironmentalAndOtherReservesScheduleOfCasualtyEnvironmentalAndOtherReservesDetails</Role>
      <ShortName>Casualty, Environmental and Other Reserves - Schedule of Casualty, Environmental and Other Reserves (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Casualty, Environmental and Other Reserves - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/CasualtyEnvironmentalAndOtherReservesNarrativeDetails</Role>
      <ShortName>Casualty, Environmental and Other Reserves - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Leases - Schedule of Information About Company's Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/LeasesScheduleOfInformationAboutCompanysOperatingLeasesDetails</Role>
      <ShortName>Leases - Schedule of Information About Company's Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2406401 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/CommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.csx.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Employee Benefit Plans - Components of Expense/(Income) Related to Net Benefit Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EmployeeBenefitPlansComponentsOfExpenseIncomeRelatedToNetBenefitExpenseDetails</Role>
      <ShortName>Employee Benefit Plans - Components of Expense/(Income) Related to Net Benefit Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Employee Benefit Plans - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/EmployeeBenefitPlansNarrativeDetails</Role>
      <ShortName>Employee Benefit Plans - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Debt and Credit Agreements - Activity Related to Long-Term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/DebtAndCreditAgreementsActivityRelatedToLongTermDebtDetails</Role>
      <ShortName>Debt and Credit Agreements - Activity Related to Long-Term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2408403 - Disclosure - Debt and Credit Agreements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/DebtAndCreditAgreementsNarrativeDetails</Role>
      <ShortName>Debt and Credit Agreements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Revenues - Revenues Disaggregated by Lines of Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/RevenuesRevenuesDisaggregatedByLinesOfBusinessDetails</Role>
      <ShortName>Revenues - Revenues Disaggregated by Lines of Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Revenues - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/RevenuesNarrativeDetails</Role>
      <ShortName>Revenues - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2409404 - Disclosure - Revenues - Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/RevenuesAccountsReceivableDetails</Role>
      <ShortName>Revenues - Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2410401 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.csx.com/role/IncomeTaxes</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Fair Value Measurements - Fair Value of Investment Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/FairValueMeasurementsFairValueOfInvestmentAssetsDetails</Role>
      <ShortName>Fair Value Measurements - Fair Value of Investment Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Fair Value Measurements - Investment Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/FairValueMeasurementsInvestmentMaturitiesDetails</Role>
      <ShortName>Fair Value Measurements - Investment Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2411404 - Disclosure - Fair Value Measurements - Fair Value and Carrying Value of Long-Term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/FairValueMeasurementsFairValueAndCarryingValueOfLongTermDebtDetails</Role>
      <ShortName>Fair Value Measurements - Fair Value and Carrying Value of Long-Term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Other Comprehensive Income (Loss) - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/OtherComprehensiveIncomeLossNarrativeDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.csx.com/role/OtherComprehensiveIncomeLossTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2412403 - Disclosure - Other Comprehensive Income (Loss) - Changes in AOCI balance by Component (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/OtherComprehensiveIncomeLossChangesInAociBalanceByComponentDetails</Role>
      <ShortName>Other Comprehensive Income (Loss) - Changes in AOCI balance by Component (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.csx.com/role/OtherComprehensiveIncomeLossTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Summarized Consolidating Financial Data - Consolidating Income Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/SummarizedConsolidatingFinancialDataConsolidatingIncomeStatementsDetails</Role>
      <ShortName>Summarized Consolidating Financial Data - Consolidating Income Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2413403 - Disclosure - Summarized Consolidating Financial Data - Consolidating Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/SummarizedConsolidatingFinancialDataConsolidatingBalanceSheetDetails</Role>
      <ShortName>Summarized Consolidating Financial Data - Consolidating Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="csx03311910-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2413404 - Disclosure - Summarized Consolidating Financial Data - Consolidating Cash Flow Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.csx.com/role/SummarizedConsolidatingFinancialDataConsolidatingCashFlowStatementsDetails</Role>
      <ShortName>Summarized Consolidating Financial Data - Consolidating Cash Flow Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</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="10-Q" original="csx03311910-q.htm">csx03311910-q.htm</File>
    <File>csx-20190331.xsd</File>
    <File>csx-20190331_cal.xml</File>
    <File>csx-20190331_def.xml</File>
    <File>csx-20190331_lab.xml</File>
    <File>csx-20190331_pre.xml</File>
    <File>csx033119ex31.htm</File>
    <File>csx033119ex32.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>chart-57219c477f8e5a3687c.jpg</File>
    <File>chart-6225ea37e8aa54f285f.jpg</File>
    <File>chart-9adc51aa68b954a0a3d.jpg</File>
    <File>csxlogo10qa05.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
