{
  "cik": 851205,
  "cik_padded": "0000851205",
  "entityName": "COGNEX CORP",
  "fiscal_years": [
    {
      "accn": "0000851205-26-000012",
      "filed": "2026-02-12",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 151233000.0,
        "capex": 8743000.0,
        "cash": 262925000.0,
        "cost_of_revenue": 328966000.0,
        "dividends_paid": 54627000.0,
        "eps_diluted": 0.68,
        "free_cash_flow": 236771000.0,
        "gross_profit": 665393000.0,
        "net_income": 114442000.0,
        "operating_cash_flow": 245514000.0,
        "operating_income": 162566000.0,
        "revenue": 994359000.0,
        "stockholders_equity": 1491901000.0,
        "total_assets": 2016555000.0,
        "total_liabilities": 524654000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.6691677754211507,
        "leverage": 0.351668106663914,
        "net_margin": 0.11509122962632208,
        "operating_margin": 0.1634882371457391,
        "payout_ratio": 0.47733349644361334,
        "revenue_growth_yoy": 0.08730747992105105,
        "roa_avg2y": 0.05708677472093739,
        "roa_period_end": 0.05675124159767524,
        "roe_avg2y": 0.07605620511157352,
        "roe_period_end": 0.07670884328115606
      }
    },
    {
      "accn": "0000851205-26-000012",
      "filed": "2026-02-12",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 67085000.0,
        "capex": 15043000.0,
        "cash": 186094000.0,
        "cost_of_revenue": 288721000.0,
        "dividends_paid": 52329000.0,
        "eps_diluted": 0.62,
        "free_cash_flow": 134038000.0,
        "gross_profit": 625794000.0,
        "net_income": 106171000.0,
        "operating_cash_flow": 149081000.0,
        "operating_income": 115065000.0,
        "revenue": 914515000.0,
        "stockholders_equity": 1517505000.0,
        "total_assets": 1992850000.0,
        "total_liabilities": 475345000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.684290580252921,
        "leverage": 0.31324114253330304,
        "net_margin": 0.11609541669628162,
        "operating_margin": 0.1258207902549439,
        "payout_ratio": 0.49287470213146717,
        "revenue_growth_yoy": 0.09189693235125909,
        "roa_avg2y": 0.05294437676373626,
        "roa_period_end": 0.053275961562586245,
        "roe_avg2y": 0.07025941208838295,
        "roe_period_end": 0.0699641846320111
      }
    },
    {
      "accn": "0000851205-26-000012",
      "filed": "2026-02-12",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 79794000.0,
        "capex": 23077000.0,
        "cash": 202655000.0,
        "cost_of_revenue": 236306000.0,
        "dividends_paid": 49079000.0,
        "eps_diluted": 0.65,
        "free_cash_flow": 89839000.0,
        "gross_profit": 601241000.0,
        "net_income": 113234000.0,
        "operating_cash_flow": 112916000.0,
        "operating_income": 130702000.0,
        "revenue": 837547000.0,
        "stockholders_equity": 1504752000.0,
        "total_assets": 2017812000.0,
        "total_liabilities": 513060000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.7178594156507038,
        "leverage": 0.3409598392293215,
        "net_margin": 0.13519718893387475,
        "operating_margin": 0.15605333193241694,
        "payout_ratio": 0.43342988854937564,
        "revenue_growth_yoy": -0.16752278623184805,
        "roa_avg2y": 0.05695944015420709,
        "roa_period_end": 0.05611722003833855,
        "roe_avg2y": 0.07694759281394807,
        "roe_period_end": 0.07525093836060694
      }
    },
    {
      "accn": "0000851205-26-000012",
      "filed": "2026-02-12",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 204314000.0,
        "capex": 19667000.0,
        "cash": 181374000.0,
        "cost_of_revenue": 284185000.0,
        "dividends_paid": 45921000.0,
        "eps_diluted": 1.23,
        "free_cash_flow": 223739000.0,
        "gross_profit": 721905000.0,
        "net_income": 215525000.0,
        "operating_cash_flow": 243406000.0,
        "operating_income": 246229000.0,
        "revenue": 1006090000.0,
        "stockholders_equity": 1438394000.0,
        "total_assets": 1958140000.0,
        "total_liabilities": 519746000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.717535210567643,
        "leverage": 0.36133771414508126,
        "net_margin": 0.21422039777753482,
        "operating_margin": 0.24473854227752984,
        "payout_ratio": 0.21306576963229323,
        "revenue_growth_yoy": -0.02989881380544558,
        "roa_avg2y": 0.10880149992351965,
        "roa_period_end": 0.11006618525743818,
        "roe_avg2y": 0.15027085707552448,
        "roe_period_end": 0.14983724904302995
      }
    },
    {
      "accn": "0000851205-25-000012",
      "filed": "2025-02-13",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 161652000.0,
        "capex": 15455000.0,
        "cash": 186161000.0,
        "cost_of_revenue": 277271000.0,
        "dividends_paid": 43263000.0,
        "eps_diluted": 1.56,
        "free_cash_flow": 298610000.0,
        "gross_profit": 759827000.0,
        "net_income": 279881000.0,
        "operating_cash_flow": 314065000.0,
        "operating_income": 315101000.0,
        "revenue": 1037098000.0,
        "stockholders_equity": 1430093000.0,
        "total_assets": 2003662000.0,
        "total_liabilities": 573569000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.7326472522365293,
        "leverage": 0.4010711191509923,
        "net_margin": 0.26986938553540746,
        "operating_margin": 0.3038295320210819,
        "payout_ratio": 0.15457640925964963,
        "revenue_growth_yoy": 0.27875761386895515,
        "roa_avg2y": 0.1471368144583431,
        "roa_period_end": 0.1396847372461024,
        "roe_avg2y": 0.20791258015930647,
        "roe_period_end": 0.19570825114170898
      }
    },
    {
      "accn": "0000851205-24-000027",
      "filed": "2024-02-15",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 51036000.0,
        "capex": 13303000.0,
        "cash": 269073000.0,
        "cost_of_revenue": 206421000.0,
        "dividends_paid": 390508000.0,
        "eps_diluted": 1.0,
        "free_cash_flow": 229097000.0,
        "gross_profit": 604599000.0,
        "net_income": 176186000.0,
        "operating_cash_flow": 242400000.0,
        "operating_income": 170529000.0,
        "revenue": 811020000.0,
        "stockholders_equity": 1262202000.0,
        "total_assets": 1800702000.0,
        "total_liabilities": 538500000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.7454797662203152,
        "leverage": 0.4266353563058845,
        "net_margin": 0.21724001874183127,
        "operating_margin": 0.21026485166826958,
        "payout_ratio": 2.216453066645477,
        "revenue_growth_yoy": 0.11768475452196382,
        "roa_avg2y": 0.09558087763997378,
        "roa_period_end": 0.09784295235969083,
        "roe_avg2y": 0.1346003990966847,
        "roe_period_end": 0.1395862152016872
      }
    },
    {
      "accn": "0000851205-23-000004",
      "filed": "2023-02-16",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 61690000.0,
        "capex": 21745000.0,
        "cash": 171431000.0,
        "cost_of_revenue": 189754000.0,
        "dividends_paid": 35124000.0,
        "eps_diluted": 1.16,
        "free_cash_flow": 231566000.0,
        "gross_profit": 535871000.0,
        "net_income": 203865000.0,
        "operating_cash_flow": 253311000.0,
        "operating_income": 142602000.0,
        "revenue": 725625000.0,
        "stockholders_equity": 1355710000.0,
        "total_assets": 1885935000.0,
        "total_liabilities": 530225000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.7384957795004307,
        "leverage": 0.3911050298367645,
        "net_margin": 0.2809509043927649,
        "operating_margin": 0.19652299741602067,
        "payout_ratio": 0.17229048635126187,
        "revenue_growth_yoy": -0.10009822183749247,
        "roa_avg2y": 0.12839455322171986,
        "roa_period_end": 0.10809757494293282,
        "roe_avg2y": 0.1636830266727098,
        "roe_period_end": 0.15037508021627044
      }
    },
    {
      "accn": "0000851205-22-000008",
      "filed": "2022-02-17",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 203822000.0,
        "capex": 37095000.0,
        "cash": 108212000.0,
        "cost_of_revenue": 206052000.0,
        "dividends_paid": 31865000.0,
        "eps_diluted": 1.24,
        "free_cash_flow": 186359000.0,
        "gross_profit": 600286000.0,
        "net_income": 219267000.0,
        "operating_cash_flow": 223454000.0,
        "operating_income": 221142000.0,
        "revenue": 806338000.0,
        "stockholders_equity": 1135263000.0,
        "total_assets": 1289667000.0,
        "total_liabilities": 154404000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.7444595194571011,
        "leverage": 0.136007251183206,
        "net_margin": 0.27192938941238043,
        "operating_margin": 0.2742547170045316,
        "payout_ratio": 0.14532510592109163,
        "revenue_growth_yoy": 0.052546525637561466,
        "roa_avg2y": 0.17014456316781898,
        "roa_period_end": 0.17001830705135512,
        "roe_avg2y": 0.19656951163099254,
        "roe_period_end": 0.19314202964423222
      }
    },
    {
      "accn": "0000851205-21-000005",
      "filed": "2021-02-11",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 123715000.0,
        "capex": 28754000.0,
        "cash": 106582000.0,
        "cost_of_revenue": 187289000.0,
        "dividends_paid": 29037000.0,
        "eps_diluted": 0.98,
        "free_cash_flow": 195569000.0,
        "gross_profit": 578794000.0,
        "net_income": 176712000.0,
        "operating_cash_flow": 224323000.0,
        "operating_income": 258861000.0,
        "revenue": 766083000.0,
        "stockholders_equity": 1095673000.0,
        "total_assets": 1287753000.0,
        "total_liabilities": 192080000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.7555238792663458,
        "leverage": 0.17530777887198096,
        "net_margin": 0.23066952275406188,
        "operating_margin": 0.3379020288924307,
        "payout_ratio": 0.16431821268504684,
        "revenue_growth_yoy": 0.44676354777485056,
        "roa_avg2y": 0.15192165260963816,
        "roa_period_end": 0.13722507344187898,
        "roe_avg2y": 0.1716435379673618,
        "roe_period_end": 0.16128169627251926
      }
    },
    {
      "accn": "0000851205-20-000002",
      "filed": "2020-02-13",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 47149000.0,
        "capex": 12816000.0,
        "cash": 79641000.0,
        "cost_of_revenue": 131070000.0,
        "dividends_paid": 25213000.0,
        "eps_diluted": 0.83,
        "free_cash_flow": 169265000.0,
        "gross_profit": 398445000.0,
        "net_income": 143694000.0,
        "operating_cash_flow": 182081000.0,
        "operating_income": 154066000.0,
        "revenue": 529515000.0,
        "stockholders_equity": 963385000.0,
        "total_assets": 1038604000.0,
        "total_liabilities": 76005000.0
      },
      "period_end": "2016-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.752471601371066,
        "leverage": 0.07889369255282157,
        "net_margin": 0.27136908302880935,
        "operating_margin": 0.2909568189758553,
        "payout_ratio": 0.17546313694378332,
        "roa_period_end": 0.13835302001532826,
        "roe_period_end": 0.1491553221194019
      }
    }
  ],
  "latest_filing": {
    "accn": "0000851205-26-000012",
    "filed": "2026-02-12",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "3823",
  "sic_description": "Industrial Instruments For Measurement, Display, and Control",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000851205.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0000851205.json"
  },
  "ticker": "CGNX"
}
