﻿<?xml version="1.0" encoding="utf-8"?>
<InstanceReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Version>2.2.0.7</Version>
  <hasSegments>false</hasSegments>
  <ReportName>Commitments and Contingencies</ReportName>
  <ReportLongName>10801 - Disclosure - Commitments and Contingencies</ReportLongName>
  <DisplayLabelColumn>true</DisplayLabelColumn>
  <ShowElementNames>false</ShowElementNames>
  <RoundingOption />
  <HasEmbeddedReports>false</HasEmbeddedReports>
  <Columns>
    <Column>
      <LabelColumn>false</LabelColumn>
      <Id>1</Id>
      <Labels>
        <Label Id="1" Label="3 Months Ended" />
        <Label Id="2" Label="Jul. 31, 2010" />
      </Labels>
      <CurrencyCode>USD</CurrencyCode>
      <FootnoteIndexer />
      <hasSegments>false</hasSegments>
      <hasScenarios>false</hasScenarios>
      <Segments />
      <Scenarios />
      <Units>
        <Unit>
          <UnitID>Unit1</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>Unit12</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>Unit13</UnitID>
          <UnitType>Divide</UnitType>
          <NumeratorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </NumeratorMeasure>
          <DenominatorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </DenominatorMeasure>
          <Scale>0</Scale>
        </Unit>
      </Units>
      <CurrencySymbol>$</CurrencySymbol>
    </Column>
  </Columns>
  <Rows>
    <Row>
      <Id>5</Id>
      <Label>Commitments and Contingencies</Label>
      <Level>3</Level>
      <ElementName>us-gaap_CommitmentsAndContingenciesDisclosureTextBlock</ElementName>
      <ElementPrefix>us-gaap</ElementPrefix>
      <IsBaseElement>true</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ShortDefinition>No definition available.</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>false</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole />
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText>&lt;div&gt;
&lt;p style="text-align: justify; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;b&gt;Note 8&lt;/b&gt;&amp;#8212;&lt;b&gt;Commitments and Contingencies&lt;/b&gt; &lt;/p&gt;
&lt;p style="text-align: justify; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; line-height: 95%; margin: 0in 0in 0pt 0.1in; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;Warranty Obligations&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style="text-align: justify; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; line-height: 95%; text-indent: 11pt; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;The Company's estimated obligations for warranty, which are included as part of Costs of Sales in the Condensed Consolidated Statements of Operations, are accrued concurrently with the revenue recognized. The Company makes provisions for its warranty obligations based upon historical costs incurred for such obligations adjusted, as necessary, for current conditions and factors. Due to the significant uncertainties and judgments involved in estimating the Company's warranty obligations, including changing product designs and specifications, the ultimate amount incurred for warranty costs could change in the near term from the current estimate. The Company believes that its warranty accrual as of July 31, 2010, which is included in the Other Accrued Liabilities line item in the Condensed Consolidated Balance Sheets, is sufficient to cover expected warranty costs. &lt;/p&gt;
&lt;p style="text-align: justify; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; line-height: 95%; text-indent: 11pt; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;The following table presents the fiscal year 2011 year-to-date activity for the Company's warranty obligations:&lt;/p&gt;
&lt;p style="text-align: justify; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="border-collapse: collapse; font-family: 'Calibri','sans-serif'; font-size: 11pt;" class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 499.05pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="665"&gt;
&lt;p style="text-align: left; line-height: 95%; text-indent: -5.05pt; margin: 0in 5.05pt 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal" align="left"&gt;Accrued warranty balance as of May 1, 2010&lt;font class="_mt"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 45.65pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="61"&gt;
&lt;p style="text-align: right; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;$&lt;font class="_mt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;2,533&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 499.05pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="665"&gt;
&lt;p style="text-align: left; line-height: 95%; text-indent: -5.05pt; margin: 0in 5.05pt 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal" align="left"&gt;Accruals for warranties of fiscal year 2011 sales&lt;font class="_mt"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 45.65pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="61"&gt;
&lt;p style="text-align: right; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; height: 12px; font-size: 10pt;" class="MsoNormal"&gt;&lt;font class="_mt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;767&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 499.05pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="665"&gt;
&lt;p style="text-align: left; line-height: 95%; text-indent: -5.05pt; margin: 0in 5.05pt 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal" align="left"&gt;Warranty costs incurred in fiscal year 2011&lt;font class="_mt"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 45.65pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="61"&gt;
&lt;p style="border-bottom: black 1px solid; text-align: right; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;font class="_mt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;(526)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 499.05pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="665"&gt;
&lt;p style="text-align: left; line-height: 95%; text-indent: -5.05pt; margin: 0in 5.05pt 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal" align="left"&gt;Accrued warranty balance as of July 31, 2010&lt;font class="_mt"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 2.35pt; width: 45.65pt; padding-right: 2.35pt; padding-top: 0in;" valign="bottom" width="61"&gt;
&lt;p style="border-bottom: black 3px double; text-align: right; line-height: 95%; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;$&lt;font class="_mt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;2,774&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p style="text-align: justify; margin: 0in 0in 0pt 0.1in; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;Legal Proceedings&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 11pt; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;At any time, the Company may be involved in legal proceedings in addition to the Crucible matter described below. The Company's policy is to routinely assess the likelihood of any adverse judgments or outcomes related to legal matters, as well as ranges of probable losses. A determination of the amount of the reserves required, if any, for these contingencies is made after thoughtful analysis of each known issue and an analysis of historical experience. The Company records reserves related to legal matters for which it is probable that a loss has been incurred and the range of such loss can be estimated. With respect to other matters, management has concluded that a loss is only reasonably possible or remote and, therefore, no liability is recorded. Management discloses the facts regarding material matters assessed as reasonably possible and potential exposure, if determinable. Costs incurred defending claims are expensed as incurred.&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 11pt; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 11pt; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;In litigation arising out of a June 2002 incident at a Crucible Metals' ("Crucible") facility, the Company's excess insurance carrier notified the Company that it would contest its obligation to provide coverage for the property damage. The carrier settled the claims relating to this incident for a total of approximately $3.4&amp;nbsp;million. The Company intends to vigorously contest the carrier's claim; however, the ultimate outcome or likelihood of this specific claim cannot be determined at this time and an unfavorable outcome ranging from $0 to $3.4&amp;nbsp;million is reasonably possible.&lt;/p&gt;
&lt;p style="text-align: justify; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;b&gt;&lt;i&gt;Other Claims or Assessments&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 11pt; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;i&gt; &lt;/i&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;In fiscal year 2009, the Company was notified by the Purchaser of its Avure Business ("Purchaser"), which was reported as a discontinued operation for the year ended April 30, 2006, that the Swedish Tax Authority was conducting an audit which included periods during the time that the Company owned the subsidiary. Pursuant to an agreement with the purchaser, the Company had made commitments to indemnify various liabilities and claims, including any tax matters when it owned the business. The Swedish tax authority concluded its audit and issued a final report in November 2009 asserting that Avure owes 19.5 million Swedish Krona in additional taxes, penalties and fines. In April 2010, the Company filed an appeal to contest the findings by the Swedish Tax Authority. While the Company intends to continue contesting the findings, an equivalent of $1.2 million was accrued as of July 31, 2010 related to the periods during which it owned Avure. This amount was accounted for as an adjustment to the loss on the disposal of the Avure Business and is reported as a charge to discontinued operations in the Company's Condensed Consolidated Statements of Operations. The balance of the accrued liability will fluctuate period over period with changes in foreign currency rates until such time as the matter is ultimately resolved.&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&lt;i&gt;Other Legal Proceedings&lt;/i&gt; - For matters other than those described above, the Company does not believe that any of its other legal proceedings will have a material adverse effect on its consolidated financial position, results of operations or cash flows.&lt;/p&gt;
&lt;p style="text-align: justify; text-indent: 0.2in; margin: 0in 0in 0pt; font-family: 'Times New Roman','serif'; font-size: 10pt;" class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt; &lt;/div&gt;</NonNumbericText>
          <NonNumericTextHeader>Note 8&amp;#8212;Commitments and Contingencies
&amp;nbsp;
Warranty Obligations
&amp;nbsp;
The Company's estimated obligations for warranty, which are included as part of</NonNumericTextHeader>
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDataType>us-types:textBlockItemType</ElementDataType>
      <SimpleDataType>textblock</SimpleDataType>
      <ElementDefenition>Includes disclosure of commitments and contingencies. This element may be used as a single block of text to encapsulate the entire disclosure including data and tables.</ElementDefenition>
      <ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef
 -Publisher FASB
 -Name FASB Interpretation (FIN)
 -Number 14
 -Paragraph 3

Reference 2: http://www.xbrl.org/2003/role/presentationRef
 -Publisher FASB
 -Name Statement of Financial Accounting Standard (FAS)
 -Number 5
 -Paragraph 9, 10, 11, 12

</ElementReferences>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
  </Rows>
  <Footnotes />
  <NumberOfCols>1</NumberOfCols>
  <NumberOfRows>1</NumberOfRows>
  <HasScenarios>false</HasScenarios>
  <MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel>
  <SharesRoundingLevel>UnKnown</SharesRoundingLevel>
  <PerShareRoundingLevel>UnKnown</PerShareRoundingLevel>
  <HasPureData>false</HasPureData>
  <SharesShouldBeRounded>true</SharesShouldBeRounded>
</InstanceReport>
