2.4.0.8156 - Disclosure - Stock Repurchase Program - Additional Information (Detail)truefalsefalse1falseUSDfalsefalse$eol_PE5967----1310-Q0005_STD_30_20111130_0http://www.sec.gov/CIK0000851205duration2011-11-01T00:00:002011-11-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2falseUSDfalsefalse$eol_PE5967----1310-Q0005_STD_30_20080430_0http://www.sec.gov/CIK0000851205duration2008-04-01T00:00:002008-04-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$3falseUSDfalsefalse$eol_PE5967----1310-Q0005_STD_91_20130630_0http://www.sec.gov/CIK0000851205duration2013-04-01T00:00:002013-06-30T00:00:00sharesStandardhttp://www.xbrl.org/2003/instanceshares0iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$4falseUSDfalsefalse$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/iso4217USDiso42170sharesStandardhttp://www.xbrl.org/2003/instanceshares0USDUSD$1true1us-gaap_EquityAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse4falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false2us-gaap_StockRepurchaseProgramAuthorizedAmountus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse8000000080000000USD$falsetruefalse2truefalsefalse5000000050000000USD$falsetruefalse3falsefalsefalse00falsefalsefalse4falsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of a stock repurchase plan authorized by an entity's Board of Directors.No definition available.false23false2cgnx_StockRepurchasedToDateTwoThousandEightPlancgnx_falsenainstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3truefalsefalse16438751643875falsefalsefalse4truefalsefalse16438751643875falsefalsefalsexbrli:sharesItemTypesharesStock repurchased to date two thousand eight plan.No definition available.false14false2us-gaap_StockRepurchasedDuringPeriodSharesus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3truefalsefalse268000268000falsefalsefalse4falsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesNumber of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 04
-Article 3
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section 50
-Paragraph 2
-URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30
-Article 5
false15false2cgnx_StockRepurchasedValueToDateTwoThousandEightPlancgnx_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3truefalsefalse4189100041891000falsefalsefalse4truefalsefalse4189100041891000falsefalsefalsexbrli:monetaryItemTypemonetaryStock repurchased value to date two thousand eight plan.No definition available.false26false2us-gaap_StockRepurchasedDuringPeriodValueus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3truefalsefalse1189100011891000falsefalsefalse4truefalsefalse1189100011891000falsefalsefalsexbrli:monetaryItemTypemonetaryEquity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 04
-Article 3
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section 50
-Paragraph 2
-URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30, 31
-Article 5
false27false2cgnx_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmountUnderTwoThousandEightPlancgnx_falsecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse4truefalsefalse81090008109000USD$falsetruefalsexbrli:monetaryItemTypemonetaryStock repurchase program remaining authorized repurchase amount under two thousand eight plan.No definition available.false2falseStock Repurchase Program - Additional Information (Detail) (USD $)NoRoundingNoRoundingUnKnownUnKnowntruefalsefalseSheethttp://www.cognex.com/taxonomy/role/DisclosureStockRepurchaseProgramAdditionalInformation47