<?xml version="1.0" encoding="utf-8"?>
<xbrl
  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="oprx-20220930.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001448431</identifier>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001448431</identifier>
        </entity>
        <period>
            <instant>2022-11-03</instant>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <dei:DocumentType contextRef="c0">10-Q/A</dei:DocumentType>
    <dei:DocumentQuarterlyReport contextRef="c0">true</dei:DocumentQuarterlyReport>
    <dei:DocumentPeriodEndDate contextRef="c0">2022-09-30</dei:DocumentPeriodEndDate>
    <dei:DocumentFiscalYearFocus contextRef="c0">2022</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport contextRef="c0">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="c0">001-38543</dei:EntityFileNumber>
    <dei:EntityIncorporationStateCountryCode contextRef="c0">NV</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber contextRef="c0">26-1265381</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="c0">400 Water Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="c0">Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="c0">Rochester</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="c0">MI</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="c0">48307</dei:EntityAddressPostalZipCode>
    <dei:Security12bTitle contextRef="c0">Common Stock, par value $0.001</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="c0">OPRX</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="c0">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityCurrentReportingStatus contextRef="c0">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="c0">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory contextRef="c0">Large Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="c0">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="c0">false</dei:EntityEmergingGrowthCompany>
    <dei:EntityShellCompany contextRef="c0">false</dei:EntityShellCompany>
    <dei:EntityCommonStockSharesOutstanding contextRef="c1" decimals="INF" unitRef="shares">17152717</dei:EntityCommonStockSharesOutstanding>
    <dei:AmendmentDescription contextRef="c0">OptimizeRx Corporation is filing this Amendment
No. 1 on Form 10-Q/A (&#x201c;Amendment No. 1&#x201d;) to its Quarterly Report on Form 10-Q for the period ended&#160;September&#160;30,
2022, originally filed with the Securities and Exchange Commission (SEC) on November 8, 2022 (the &#x201c;Original 10-Q Filing&#x201d;)
to address management&#x2019;s re-evaluation of disclosure controls and procedures and to reflect the identification of a material weakness.
The material weakness did not result in any change to the Company&#x2019;s consolidated financial statements as set forth in the Original
10-Q Filing.This Amendment No. 1 is limited in scope to make
the following changes to the Original 10-Q Filing:
&#x25cf;To amend Part I - Item 4. Controls and Procedures to reflect management&#x2019;s (i) re-evaluation of our
disclosure controls and procedures, and (ii) identification of a material weakness.
&#x25cf;To amend Part II - Item 6. Exhibits to include the following currently dated documents: certifications
from the Company&#x2019;s Chief Executive Officer and Chief Financial Officer as required by Sections 302 and 906 of the Sarbanes Oxley
Act of 2002, which certifications are filed herewith as Exhibits 31.1, 31.2, and 32.1.This Amendment No. 1 has not been updated or amended
to give effect to any subsequent events beyond those that existed as of the original filing date and should thus be read in conjunction
with the Original 10-Q Filing and any of the company&#x2019;s other filings with the SEC subsequent to the Original 10-Q Filing, together
with any amendments to those filings. Other than the filing of the information identified above, this amendment does not modify or update
the disclosure in the Original 10-Q Filing in any way. Unless otherwise specified or the context
otherwise requires, when used in this Amendment No. 1, the terms &#x201c;we,&#x201d; &#x201c;our,&#x201d; &#x201c;us,&#x201d; &#x201c;OptimizeRx,&#x201d;
or the &#x201c;Company&#x201d; refer to OptimizeRx Corporation and its subsidiaries.The Company is concurrently filing Amendment No.
1 to each of its (i) Annual Report on Form 10-K for the year ended December 31, 2021 and (ii) Quarterly Reports on Form 10-Q for the quarterly
periods ended March 31, 2022 and June 30, 2022.</dei:AmendmentDescription>
    <dei:EntityRegistrantName contextRef="c0" id="hidden-fact-0">OptimizeRx Corp</dei:EntityRegistrantName>
    <dei:CityAreaCode contextRef="c0" id="hidden-fact-1">248</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="c0" id="hidden-fact-2">651-6568</dei:LocalPhoneNumber>
    <dei:AmendmentFlag contextRef="c0">true</dei:AmendmentFlag>
    <dei:CurrentFiscalYearEndDate contextRef="c0">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentFiscalPeriodFocus contextRef="c0">Q3</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey contextRef="c0">0001448431</dei:EntityCentralIndexKey>
</xbrl>
