2.4.0.8151 - Disclosure - Derivative Instruments - Information Regarding Effect of Forward Contracts, Net of Underlying Exposure, on Consolidated Statements of Operations (Detail)truefalseIn Thousands, unless otherwise specifiedfalse1false
USDfalsefalse$eol_PE5967----1310-Q0005_STD_91_20130630_0_927015x929794_929665x929612http://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_0_927015x929794_929665x929612http://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_0_927015x929794_929665x929612http://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_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2012-01-01T00:00:002012-07-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3falsefalsefalse00falsefalsefalse | 4falsefalsefalse00falsefalsefalse | 1false
USDtruefalse$eol_PE5967----1310-Q0005_STD_91_20130630_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2013-04-01T00:00:002013-06-30T00:00:00falsefalseForeign Currency Gain (Loss) [Member]us-gaap_IncomeStatementLocationAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_ForeignCurrencyGainLossMemberus-gaap_IncomeStatementLocationAxisexplicitMemberfalsefalseCurrency Forward Contracts [Member]us-gaap_DerivativeInstrumentRiskAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_ForwardContractsMemberus-gaap_DerivativeInstrumentRiskAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse0
2true
4us-gaap_DerivativeGainLossOnDerivativeNetAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3falsefalsefalse00falsefalsefalse | 4falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
3false
5us-gaap_DerivativeGainLossOnDerivativeNetus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse6400064USD$falsetruefalse | 2truefalsefalse198000198USD$falsetruefalse | 3truefalsefalse197000197USD$falsetruefalse | 4truefalsefalse-91000-91USD$falsetruefalse | xbrli:monetaryItemTypemonetaryAmount of increase (decrease) in the fair value of derivatives recognized in the income statement.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 50
-Paragraph 4A
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=7476318&loc=SL5618551-113959
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 50
-Paragraph 4C
-Subparagraph (a),(c),(d),(e)
-URI http://asc.fasb.org/extlink&oid=7476318&loc=SL5624171-113959
false2
falseDerivative Instruments - Information Regarding Effect of Forward Contracts, Net of Underlying Exposure, on Consolidated Statements of Operations (Detail) (Foreign Currency Gain (Loss) [Member], Currency Forward Contracts [Member], USD $)ThousandsUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.cognex.com/taxonomy/role/DisclosureDerivativeInstrumentsInformationRegardingEffectOfForwardContractsNetOfUnderlyingExposureOnConsolidatedStatementsOfOperations43