<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2017-02-24</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001048477</issuerCik>
        <issuerName>BIOMARIN PHARMACEUTICAL INC</issuerName>
        <issuerTradingSymbol>BMRN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001274826</rptOwnerCik>
            <rptOwnerName>BAFFI ROBERT</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O BIOMARIN PHARMACEUTICAL INC.</rptOwnerStreet1>
            <rptOwnerStreet2>770 LINDARO ST.</rptOwnerStreet2>
            <rptOwnerCity>SAN RAFAEL</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94901</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>EVP, Technical Operations</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2017-02-24</value>
                <footnoteId id="F1"/>
            </transactionDate>
            <deemedExecutionDate>
                <value>2017-02-24</value>
            </deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>11917</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>140659</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>31676</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>Shares held by Baffi Family Trust</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Transaction Date is the date that the Issuer's Board of Directors' Compensation Committee Chair certified that the reporting person earned the Restricted Stock Units (RSUs), which are convertible into shares of the Issuer's Common Stock on a 1:1 basis.</footnote>
        <footnote id="F2">Represents the total number of RSUs earned pursuant to a calculation based on the level of the Issuer's total adjusted revenues for the fiscal year ended December 31, 2016, as certified by its audited financials, set forth in the performance-based RSU awards previously granted under the Issuer's 2006 Share Incentive Plan.</footnote>
        <footnote id="F3">Although earned, the RSUs only vest according to the following schedule: 1/3 vests on each of March 15, 2017, 2018 and 2019, so long as the reporting person remains continuously employed with the Issuer through that date, subject to earlier vesting upon certain corporate events.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Laura Randall Woodhead, Attorney-in-Fact</signatureName>
        <signatureDate>2017-02-28</signatureDate>
    </ownerSignature>
</ownershipDocument>
