<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>72</ContextCount>
  <ElementCount>150</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>22</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00000002 - Statement - Unaudited Consolidated Condensed Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/UnauditedConsolidatedCondensedBalanceSheets</Role>
      <ShortName>Unaudited Consolidated Condensed Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00000003 - Statement - Unaudited Consolidated Condensed Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/UnauditedConsolidatedCondensedBalanceSheetsParenthetical</Role>
      <ShortName>Unaudited Consolidated Condensed Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00000004 - Statement - Unaudited Consolidated Condensed Statement of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/UnauditedConsolidatedCondensedStatementOfOperationsAndComprehensiveLoss</Role>
      <ShortName>Unaudited Consolidated Condensed Statement of Operations and Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00000005 - Statement - Unaudited Consolidated Condensed Statement of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/UnauditedConsolidatedCondensedStatementOfCashFlows</Role>
      <ShortName>Unaudited Consolidated Condensed Statement of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00000006 - Statement - Unaudited Consolidated Statement of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/UnauditedConsolidatedStatementOfShareholdersEquity</Role>
      <ShortName>Unaudited Consolidated Statement of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00000007 - Disclosure - Nature of Business and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/NatureOfBusinessAndBasisOfPresentation</Role>
      <ShortName>Nature of Business and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00000008 - Disclosure - Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://sunshinebiopharma.com/role/NotesPayable</Role>
      <ShortName>Notes Payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00000009 - Disclosure - Shareholders??? Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/ShareholdersEquity</Role>
      <ShortName>Shareholders??? Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>00000010 - Disclosure - Warrants</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/Warrants</Role>
      <ShortName>Warrants</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>00000011 - Disclosure - Net Loss Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/NetLossPerCommonShare</Role>
      <ShortName>Net Loss Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>00000012 - Disclosure - Management Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/ManagementCompensation</Role>
      <ShortName>Management Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>00000013 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>00000014 - Disclosure - Nature of Business and Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/NatureOfBusinessAndBasisOfPresentationPolicies</Role>
      <ShortName>Nature of Business and Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>00000015 - Disclosure - Warrants (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/WarrantsTables</Role>
      <ShortName>Warrants (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/Warrants</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>00000016 - Disclosure - Nature of Business and Basis of Presentation (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/NatureOfBusinessAndBasisOfPresentationDetailsNarrative</Role>
      <ShortName>Nature of Business and Basis of Presentation (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/NatureOfBusinessAndBasisOfPresentationPolicies</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>00000017 - Disclosure - Notes Payable (Details Narrative)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://sunshinebiopharma.com/role/NotesPayableDetailsNarrative</Role>
      <ShortName>Notes Payable (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/NotesPayable</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>00000018 - Disclosure - Shareholders??? Equity (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/ShareholdersEquityDetailsNarrative</Role>
      <ShortName>Shareholders??? Equity (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/ShareholdersEquity</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>00000019 - Disclosure - Warrants issued with financing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/WarrantsIssuedWithFinancingDetails</Role>
      <ShortName>Warrants issued with financing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>00000020 - Disclosure - Schedule of outstanding warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/ScheduleOfOutstandingWarrantsDetails</Role>
      <ShortName>Schedule of outstanding warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>00000021 - Disclosure - Warrants (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/WarrantsDetailsNarrative</Role>
      <ShortName>Warrants (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/WarrantsTables</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>00000022 - Disclosure - Net Loss Per Common Share (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/NetLossPerCommonShareDetailsNarrative</Role>
      <ShortName>Net Loss Per Common Share (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/NetLossPerCommonShare</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="sunshine_i10q-033122.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>00000023 - Disclosure - Management Compensation (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://sunshinebiopharma.com/role/ManagementCompensationDetailsNarrative</Role>
      <ShortName>Management Compensation (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://sunshinebiopharma.com/role/ManagementCompensation</ParentRole>
      <Position>23</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="sunshine_i10q-033122.htm">sunshine_i10q-033122.htm</File>
    <File>sbfm-20220331.xsd</File>
    <File>sbfm-20220331_cal.xml</File>
    <File>sbfm-20220331_def.xml</File>
    <File>sbfm-20220331_lab.xml</File>
    <File>sbfm-20220331_pre.xml</File>
    <File>sunshine_ex3101.htm</File>
    <File>sunshine_ex3102.htm</File>
    <File>sunshine_ex3201.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>image_002.jpg</File>
    <File>image_003.jpg</File>
    <File>image_004.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="266">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="34">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
