<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="sbfm-20260901.xsd" xlink:type="simple"/>
    <context id="AsOf2026-09-01">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001402328</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="AsOf2026-09-01" id="Fact000003">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-09-01" id="Fact000004">0001402328</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2026-09-01" id="Fact000009">S-1</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="AsOf2026-09-01" id="Fact000010">Sunshine Biopharma Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2026-09-01" id="Fact000011">CO</dei:EntityIncorporationStateCountryCode>
    <dei:EntityPrimarySicNumber contextRef="AsOf2026-09-01" id="Fact000012">8731</dei:EntityPrimarySicNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2026-09-01" id="Fact000013">20-5566275</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2026-09-01" id="Fact000014">333 Las Olas Way</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="AsOf2026-09-01" id="Fact000015">CU4 Suite 433</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="AsOf2026-09-01" id="Fact000016">Fort Lauderdale</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2026-09-01" id="Fact000017">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2026-09-01" id="Fact000018">33301</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="AsOf2026-09-01" id="Fact000019">(954)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2026-09-01" id="Fact000020">330-0684</dei:LocalPhoneNumber>
    <dei:EntityFilerCategory contextRef="AsOf2026-09-01" id="Fact000021">Non-accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="AsOf2026-09-01" id="Fact000022">true</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2026-09-01" id="Fact000023">false</dei:EntityEmergingGrowthCompany>
</xbrl>
