2.4.0.8148 - Disclosure - Derivative Instruments - Additional Information (Detail)truefalseIn Thousands, unless otherwise specifiedfalse1false
USDfalsefalse$eol_PE5967----1310-Q0005_STD_91_20130630_0http://www.sec.gov/CIK0000851205duration2013-04-01T00:00:002013-06-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false
USDfalsefalse$eol_PE5967----1310-Q0005_STD_91_20120701_0http://www.sec.gov/CIK0000851205duration2012-04-02T00:00:002012-07-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$3false
USDfalsefalse$eol_PE5967----1310-Q0005_STD_181_20130630_0http://www.sec.gov/CIK0000851205duration2013-01-01T00:00:002013-06-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$4false
USDfalsefalse$eol_PE5967----1310-Q0005_STD_183_20120701_0http://www.sec.gov/CIK0000851205duration2012-01-01T00:00:002012-07-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true
1us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3falsefalsefalse00falsefalsefalse | 4falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
2false
2us-gaap_ForeignCurrencyTransactionGainLossBeforeTaxus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel| 1truefalsefalse7600076USD$falsetruefalse | 2truefalsefalse-30000-30USD$falsetruefalse | 3truefalsefalse139000139USD$falsetruefalse | 4truefalsefalse-668000-668USD$falsetruefalse | xbrli:monetaryItemTypemonetaryAmount before tax of foreign currency transaction realized and unrealized gain (loss) recognized in the income statement.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 830
-SubTopic 20
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6450189&loc=d3e30690-110894
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 830
-SubTopic 20
-Section 50
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6450222&loc=d3e30840-110895
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 830
-SubTopic 20
-Section 45
-Paragraph 2
-URI http://asc.fasb.org/extlink&oid=6450189&loc=d3e30700-110894
false2
falseDerivative Instruments - Additional Information (Detail) (USD $)ThousandsUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.cognex.com/taxonomy/role/DisclosureDerivativeInstrumentsAdditionalInformation42