2.4.0.8157 - Disclosure - Taxes - Reconciliation of United States Federal Statutory Corporate Tax Rate to Company's Effective Tax Rate, or Income Tax Provision (Detail)truefalsefalse1false
falsefalseeol_PE5967----1310-Q0005_STD_91_20130630_0http://www.sec.gov/CIK0000851205duration2013-04-01T00:00:002013-06-30T00:00:00pureStandardhttp://www.xbrl.org/2003/instancepure02false
falsefalseeol_PE5967----1310-Q0005_STD_91_20120701_0http://www.sec.gov/CIK0000851205duration2012-04-02T00:00:002012-07-01T00:00:00pureStandardhttp://www.xbrl.org/2003/instancepure03false
falsefalseeol_PE5967----1310-Q0005_STD_181_20130630_0http://www.sec.gov/CIK0000851205duration2013-01-01T00:00:002013-06-30T00:00:00pureStandardhttp://www.xbrl.org/2003/instancepure04false
falsefalseeol_PE5967----1310-Q0005_STD_183_20120701_0http://www.sec.gov/CIK0000851205duration2012-01-01T00:00:002012-07-01T00:00:00pureStandardhttp://www.xbrl.org/2003/instancepure01true
2us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3falsefalsefalse00falsefalsefalse | 4falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
2false
3us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truetruefalse0.350.35falsefalsefalse | 2truetruefalse0.350.35falsefalsefalse | 3truetruefalse0.350.35falsefalsefalse | 4truetruefalse0.350.35falsefalsefalse | num:percentItemTypepurePercentage of domestic federal statutory tax rate applicable to pretax income (loss).Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 12
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 6.I)
-URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 13
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319
false0
3false
3us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxesus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truetruefalse0.020.02falsefalsefalse | 2truetruefalse0.010.01falsefalsefalse | 3truetruefalse0.020.02falsefalsefalse | 4truetruefalse0.010.01falsefalsefalse | num:percentItemTypepurePercentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to state and local income tax expense (benefit), net of federal tax expense (benefit).Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 12
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 6.I)
-URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 13
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319
false0
4false
3us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferentialus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truetruefalse-0.17-0.17falsefalsefalse | 2truetruefalse-0.15-0.15falsefalsefalse | 3truetruefalse-0.17-0.17falsefalsefalse | 4truetruefalse-0.15-0.15falsefalsefalse | num:percentItemTypepurePercentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to statutory income tax expense (benefit) outside of the country of domicile.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 12
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 6.I)
-URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 13
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319
false0
5false
3us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopmentus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truetruefalse-0.01-0.01falsefalsefalse | 2falsetruefalse00falsefalsefalse | 3truetruefalse-0.01-0.01falsefalsefalse | 4falsetruefalse00falsefalsefalse | num:percentItemTypepurePercentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to research and development expense.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 12
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 6.I)
-URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 13
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319
false0
6false
3us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsetruefalse00falsefalsefalse | 2falsetruefalse00falsefalsefalse | 3truetruefalse-0.01-0.01falsefalsefalse | 4falsetruefalse00falsefalsefalse | num:percentItemTypepurePercentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in the income tax rates.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 12
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 6.I)
-URI http://asc.fasb.org/extlink&oid=34349781&loc=d3e330036-122817
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 13
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319
false0
7false
3us-gaap_EffectiveIncomeTaxRateContinuingOperationsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truetruefalse0.190.19falsefalsefalse | 2truetruefalse0.210.21falsefalsefalse | 3truetruefalse0.180.18falsefalsefalse | 4truetruefalse0.210.21falsefalsefalse | num:percentItemTypepurePercentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 12
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32687-109319
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 740
-SubTopic 10
-Section 50
-Paragraph 13
-URI http://asc.fasb.org/extlink&oid=6907707&loc=d3e32698-109319
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 235
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SX 210.4-08.(h)(2))
-URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 08
-Paragraph h
-Subparagraph 2
-Article 4
true0
falseTaxes - Reconciliation of United States Federal Statutory Corporate Tax Rate to Company's Effective Tax Rate, or Income Tax Provision (Detail)UnKnownUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.cognex.com/taxonomy/role/DisclosureTaxesReconciliationOfUnitedStatesFederalStatutoryCorporateTaxRateToCompanysEffectiveTaxRateOrIncomeTaxProvision47