<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="sah-20230215.xsd" xlink:type="simple"/>
    <context id="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001043509</identifier>
        </entity>
        <period>
            <startDate>2023-02-15</startDate>
            <endDate>2023-02-15</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV80L2ZyYWc6ZGNjNGFkMzFiMTE4NDRiNTliY2ZkNzlhMzEzNDYyYTEvdGFibGU6ZmE4YzI4Y2E0ZmY0NDEwNzlhYThkOWQ3YmNkZDY3MjcvdGFibGVyYW5nZTpmYThjMjhjYTRmZjQ0MTA3OWFhOGQ5ZDdiY2RkNjcyN18xLTEtMS0xLTEzNjIzNg_8c202e88-a43e-40c8-95e0-ddec1adf2c79">0001043509</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV80L2ZyYWc6ZGNjNGFkMzFiMTE4NDRiNTliY2ZkNzlhMzEzNDYyYTEvdGFibGU6ZmE4YzI4Y2E0ZmY0NDEwNzlhYThkOWQ3YmNkZDY3MjcvdGFibGVyYW5nZTpmYThjMjhjYTRmZjQ0MTA3OWFhOGQ5ZDdiY2RkNjcyN18yLTEtMS0xLTEzNjIzNg_9ebb2b7b-85c7-4497-917e-9da22d2bc8b8">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xNDU5_d8764b51-61dc-4229-8c53-3bfe6d3f3c0c">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xMDk5NTExNjI5MjQ2_096e3363-fcb9-49ac-a272-294c09bdcafb">2023-02-15</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xNDUz_69905173-0f2d-47f5-a254-5af0e3c34dd3">SONIC AUTOMOTIVE, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xNDU1_d152363f-8cb6-488d-bee1-591da439bfa8">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6OTQ2NTg2ZmZjZDIzNDNhZWJmNGU5NzIwM2RjM2FkOTEvdGFibGVyYW5nZTo5NDY1ODZmZmNkMjM0M2FlYmY0ZTk3MjAzZGMzYWQ5MV8wLTAtMS0xLTEzNjIzNg_e172cc6d-4259-44d8-9d64-c98de515a43f">1-13395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6OTQ2NTg2ZmZjZDIzNDNhZWJmNGU5NzIwM2RjM2FkOTEvdGFibGVyYW5nZTo5NDY1ODZmZmNkMjM0M2FlYmY0ZTk3MjAzZGMzYWQ5MV8wLTItMS0xLTEzNjIzNg_31cbaae6-3bf9-4911-8c56-cef821f6de1c">56-2010790</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6YzU1ZjkxMDlmYzQyNGNkYzk0M2RiZjYwNTNlM2Y5ZTUvdGFibGVyYW5nZTpjNTVmOTEwOWZjNDI0Y2RjOTQzZGJmNjA1M2UzZjllNV8wLTItMS0xLTEzNjIzNg_4b8ffd9e-d697-45fb-931a-21c72e971b75">4401 Colwick Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6YzU1ZjkxMDlmYzQyNGNkYzk0M2RiZjYwNTNlM2Y5ZTUvdGFibGVyYW5nZTpjNTVmOTEwOWZjNDI0Y2RjOTQzZGJmNjA1M2UzZjllNV8xLTItMS0xLTEzNjIzNg_c3ad6e47-9c46-49f4-b0ac-4c313464c9fe">Charlotte,</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6YzU1ZjkxMDlmYzQyNGNkYzk0M2RiZjYwNTNlM2Y5ZTUvdGFibGVyYW5nZTpjNTVmOTEwOWZjNDI0Y2RjOTQzZGJmNjA1M2UzZjllNV8xLTMtMS0xLTEzNjIzNg_288cfea6-6378-419e-82b0-637011c7d654">NC</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6YzU1ZjkxMDlmYzQyNGNkYzk0M2RiZjYwNTNlM2Y5ZTUvdGFibGVyYW5nZTpjNTVmOTEwOWZjNDI0Y2RjOTQzZGJmNjA1M2UzZjllNV8xLTYtMS0xLTEzNjIzNg_0735a71f-b79f-4ee7-b968-b7d18ad1d4e4">28211</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xNDU2_5b58cf0d-c86f-4050-8a20-daf2e0091eed">(704)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xNDU3_58bb8ff8-a004-44f3-ae54-70025efcf66e">566-2400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6ZDQ2YzQwZjcwNDU4NDdiNzk2OTlmNWU3ZDBiZjU3ZDEvdGFibGVyYW5nZTpkNDZjNDBmNzA0NTg0N2I3OTY5OWY1ZTdkMGJmNTdkMV8wLTAtMS0xLTEzNjIzNg_d3d28a9f-6f3d-4729-9488-2fb91711e4f4">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6ZDQ2YzQwZjcwNDU4NDdiNzk2OTlmNWU3ZDBiZjU3ZDEvdGFibGVyYW5nZTpkNDZjNDBmNzA0NTg0N2I3OTY5OWY1ZTdkMGJmNTdkMV8xLTAtMS0xLTEzNjIzNg_950830bb-0065-45f3-8cad-adec19fd6a22">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6ZDQ2YzQwZjcwNDU4NDdiNzk2OTlmNWU3ZDBiZjU3ZDEvdGFibGVyYW5nZTpkNDZjNDBmNzA0NTg0N2I3OTY5OWY1ZTdkMGJmNTdkMV8yLTAtMS0xLTEzNjIzNg_237bbeda-2e7d-4d69-abb4-87879c34e6a6">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6ZDQ2YzQwZjcwNDU4NDdiNzk2OTlmNWU3ZDBiZjU3ZDEvdGFibGVyYW5nZTpkNDZjNDBmNzA0NTg0N2I3OTY5OWY1ZTdkMGJmNTdkMV8zLTAtMS0xLTEzNjIzNg_f51d01ee-63f9-4772-ac6b-5c4e6171b6ce">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6OTFmZTQwM2E1MWY3NDZmNWJjNmIwOWI1YTgwOWFjYzcvdGFibGVyYW5nZTo5MWZlNDAzYTUxZjc0NmY1YmM2YjA5YjVhODA5YWNjN18xLTAtMS0xLTEzNjIzNg_b42d787b-f8a8-44a8-932e-949de416bb45">Class A Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6OTFmZTQwM2E1MWY3NDZmNWJjNmIwOWI1YTgwOWFjYzcvdGFibGVyYW5nZTo5MWZlNDAzYTUxZjc0NmY1YmM2YjA5YjVhODA5YWNjN18xLTEtMS0xLTEzNjIzNg_fb198c89-2a65-49e3-bc3f-bbd1b3bccba9">SAH</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGFibGU6OTFmZTQwM2E1MWY3NDZmNWJjNmIwOWI1YTgwOWFjYzcvdGFibGVyYW5nZTo5MWZlNDAzYTUxZjc0NmY1YmM2YjA5YjVhODA5YWNjN18xLTItMS0xLTEzNjIzNg_a58a5480-1752-43d5-8fed-f4c517f433fd">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="i34b5433a21d54375915d89d4cbad67fc_D20230215-20230215"
      id="id3VybDovL2RvY3MudjEvZG9jOjczNzc1MDZlYjRlNTQ0YmFhZjcwYjg4MTUxOTIzMWI5L3NlYzo3Mzc3NTA2ZWI0ZTU0NGJhYWY3MGI4ODE1MTkyMzFiOV8xL2ZyYWc6OTUwMGY1NWY4NTczNDgyMzg4OWJkNWVhOGI5MDlhYWEvdGV4dHJlZ2lvbjo5NTAwZjU1Zjg1NzM0ODIzODg5YmQ1ZWE4YjkwOWFhYV8xNDU4_aa28af5b-f373-4663-a5c5-d5e3acb9ed70">false</dei:EntityEmergingGrowthCompany>
</xbrl>
