2.2.0.7trueConsolidated Statement of Shareholders' Equity and Comprehensive Income (Parenthetical) (USD $)0131 - Statement - Consolidated Statement of Shareholders' Equity and Comprehensive Income (Parenthetical)truefalseIn Thousandsfalsefalse1USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0$22us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false32us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1truetruefalsefalse9200092falsefalsefalsexbrli:monetaryItemTypemonetaryTax effect of the gross appreciation or the gross loss, net of reclassification adjustment, in the change in value of available for sale securities during the period.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Research Bulletin (ARB)
-Number 51
-Paragraph 38
-Subparagraph c(3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 130
-Paragraph 25
false42us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse122000122falsefalsefalsexbrli:monetaryItemTypemonetaryTax effect of the adjustment that results from the process of translating subsidiary financial statements and foreign equity investments into functional currency of the reporting entity.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Research Bulletin (ARB)
-Number 51
-Paragraph 38
-Subparagraph c(3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 130
-Paragraph 25
false50natruenanaNo definition available.falsetruefalsefalsefalsefalsefalsefalsefalsefalsefalsehttp://cognex.com/role/statementofshareholdersequityparentheticalfalse1falsefalsefalsefalse00falsefalsefalsefalse2USDtruefalsefalsefalseAccumulated Other Comprehensive Lossus-gaap_StatementEquityComponentsAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_AccumulatedOtherComprehensiveIncomeMemberus-gaap_StatementEquityComponentsAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$naNo definition available.No authoritative reference available.false62us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false72us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse9200092falsefalsefalsexbrli:monetaryItemTypemonetaryTax effect of the gross appreciation or the gross loss, net of reclassification adjustment, in the change in value of available for sale securities during the period.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Research Bulletin (ARB)
-Number 51
-Paragraph 38
-Subparagraph c(3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 130
-Paragraph 25
false82us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse122000122falsefalsefalsexbrli:monetaryItemTypemonetaryTax effect of the adjustment that results from the process of translating subsidiary financial statements and foreign equity investments into functional currency of the reporting entity.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Research Bulletin (ARB)
-Number 51
-Paragraph 38
-Subparagraph c(3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 130
-Paragraph 25
false90natruenanaNo definition available.falsetruefalsefalsefalsefalsefalsefalsefalsefalsefalsehttp://cognex.com/role/statementofshareholdersequityparentheticalfalse1falsefalsefalsefalse00falsefalsefalsefalse3USDtruefalsefalsefalseComprehensive Incomeus-gaap_StatementEquityComponentsAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_ComprehensiveIncomeMemberus-gaap_StatementEquityComponentsAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$naNo definition available.No authoritative reference available.false102us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false112us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse9200092falsefalsefalsexbrli:monetaryItemTypemonetaryTax effect of the gross appreciation or the gross loss, net of reclassification adjustment, in the change in value of available for sale securities during the period.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Research Bulletin (ARB)
-Number 51
-Paragraph 38
-Subparagraph c(3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 130
-Paragraph 25
false122us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1truetruefalsefalse122000122falsefalsefalsexbrli:monetaryItemTypemonetaryTax effect of the adjustment that results from the process of translating subsidiary financial statements and foreign equity investments into functional currency of the reporting entity.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Research Bulletin (ARB)
-Number 51
-Paragraph 38
-Subparagraph c(3)
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 130
-Paragraph 25
false111falseThousandsUnKnownUnKnownfalsetrue