2.2.0.7 true Consolidated Statement of Shareholders' Equity and Comprehensive Income (Parenthetical) (USD $) 0131 - Statement - Consolidated Statement of Shareholders' Equity and Comprehensive Income (Parenthetical) true false In Thousands false false 1 USD false false USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ 2 2 us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 3 2 us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTax us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 true true false false 92000 92 false false false xbrli:monetaryItemType monetary Tax 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 false 4 2 us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTax us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 122000 122 false false false xbrli:monetaryItemType monetary Tax 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 false 5 0 na true na na No definition available. false true false false false false false false false false false http://cognex.com/role/statementofshareholdersequityparenthetical false 1 false false false false 0 0 false false false false 2 USD true false false false Accumulated Other Comprehensive Loss us-gaap_StatementEquityComponentsAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_AccumulatedOtherComprehensiveIncomeMember us-gaap_StatementEquityComponentsAxis explicitMember USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 6 2 us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 7 2 us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTax us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 92000 92 false false false xbrli:monetaryItemType monetary Tax 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 false 8 2 us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTax us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 122000 122 false false false xbrli:monetaryItemType monetary Tax 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 false 9 0 na true na na No definition available. false true false false false false false false false false false http://cognex.com/role/statementofshareholdersequityparenthetical false 1 false false false false 0 0 false false false false 3 USD true false false false Comprehensive Income us-gaap_StatementEquityComponentsAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_ComprehensiveIncomeMember us-gaap_StatementEquityComponentsAxis explicitMember USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 10 2 us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 11 2 us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTax us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 92000 92 false false false xbrli:monetaryItemType monetary Tax 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 false 12 2 us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTax us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 true true false false 122000 122 false false false xbrli:monetaryItemType monetary Tax 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 false 1 11 false Thousands UnKnown UnKnown false true