<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Version>2.4.0.8</Version><ReportLongName>0506 - Disclosure - Commitments and Contingencies (Tables)</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column FlagID="0"><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><CurrencyCode /><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName /><CurrencySymbol /><contextRef><ContextID>Jan_01_2013_Jun_30_2013</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0001054721</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2013-01-01T00:00:00</PeriodStartDate><PeriodEndDate>2013-06-30T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS /><CurrencyCode /><OriginalCurrencyCode /></MCU><CurrencySymbol /><Labels><Label Key="CalendarSupplement" Id="0" Label="6 Months Ended" /><Label Key="Calendar" Id="1" Label="Jun. 30, 2013" /></Labels></Column></Columns><Rows><Row FlagID="0"><Id>1</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>1</Level><ElementName>us-gaap_CommitmentsAndContingenciesDisclosureAbstract</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Commitments and Contingencies [Abstract]</Label></Row><Row FlagID="0"><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>2</Level><ElementName>us-gaap_ScheduleOfFutureMinimumLeasePaymentsForCapitalLeasesTableTextBlock</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>verboseLabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="Jan_01_2013_Jun_30_2013" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" --&gt;
   &lt;!-- Begin Block Tagged Note Table: note6_table1 - us-gaap:ScheduleOfFutureMinimumLeasePaymentsForCapitalLeasesTableTextBlock--&gt;
   &lt;p style="margin-top:12px;margin-bottom:0px; text-indent:4%"&gt;&lt;font style="font-family:times new roman" size="2"&gt;Future operating lease commitments are as follows
   by calendar year (in thousands): &lt;/font&gt;&lt;/p&gt;
   &lt;p style="font-size:12px;margin-top:0px;margin-bottom:0px"&gt;&amp;#160;&lt;/p&gt;
   &lt;table cellspacing="0" cellpadding="0" width="68%" border="0" style="border-collapse:collapse; text-align: left" align="center"&gt;
   &lt;!-- Begin Table Head --&gt;
   &lt;tr&gt;
   &lt;td width="87%"&gt;&amp;#160;&lt;/td&gt;
   &lt;td valign="bottom" width="5%"&gt;&amp;#160;&lt;/td&gt;
   &lt;td&gt;&amp;#160;&lt;/td&gt;
   &lt;td&gt;&amp;#160;&lt;/td&gt;
   &lt;td&gt;&amp;#160;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;!-- End Table Head --&gt;
   &lt;!-- Begin Table Body --&gt;
   &lt;tr bgcolor="#cceeff"&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:3.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;Remainder of 2013&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;$&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt; 775&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:3.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;2014&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt;1,055&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr bgcolor="#cceeff"&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:3.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;2015&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt;276&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:3.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;2016&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt;276&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr bgcolor="#cceeff"&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:3.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;2017&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt;141&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:3.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;Thereafter&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt;91&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr style="font-size:1px"&gt;
   &lt;td valign="bottom"&gt;&amp;#160;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&amp;#160;&lt;/td&gt;
   &lt;td valign="bottom"&gt;
   &lt;p style="border-top:1px solid #000000"&gt;&amp;#160;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;
   &lt;p style="border-top:1px solid #000000"&gt;&amp;#160;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td&gt;&amp;#160;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr bgcolor="#cceeff"&gt;
   &lt;td valign="top"&gt;
   &lt;p style="margin-left:1.00em; text-indent:-1.00em"&gt;&lt;font style="font-family:times new roman" size="2"&gt;Total commitments&lt;/font&gt;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font size="1"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;$&lt;/font&gt;&lt;/td&gt;
   &lt;td valign="bottom" align="right"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;2,614&lt;/font&gt;&lt;/td&gt;
   &lt;td nowrap="nowrap" valign="bottom"&gt;&lt;font style="font-family:times new roman" size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr style="font-size:1px"&gt;
   &lt;td valign="bottom"&gt;&amp;#160;&lt;/td&gt;
   &lt;td valign="bottom"&gt;&amp;#160;&lt;/td&gt;
   &lt;td valign="bottom"&gt;
   &lt;p style="border-top:3px double #000000"&gt;&amp;#160;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td valign="bottom"&gt;
   &lt;p style="border-top:3px double #000000"&gt;&amp;#160;&lt;/p&gt;
   &lt;/td&gt;
   &lt;td&gt;&amp;#160;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;!-- End Table Body --&gt;
   &lt;/table&gt;
</NonNumbericText><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>nonnum:textBlockItemType</ElementDataType><SimpleDataType>na</SimpleDataType><ElementDefenition>Tabular disclosure of future minimum lease payments as of the date of the latest balance sheet presented, in aggregate and for each of the five years succeeding fiscal years, with separate deductions from the total for the amount representing executor costs, including any profit thereon, included in the minimum lease payments and for the amount of the imputed interest necessary to reduce the net minimum lease payments to present value.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 840

 -SubTopic 30

 -Section 50

 -Paragraph 1

 -Subparagraph (b)

 -URI http://asc.fasb.org/extlink&amp;oid=6455398&amp;loc=d3e45280-112737



</ElementReferences><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Operating lease commitments</Label></Row></Rows><Footnotes /><IsEquityReport>false</IsEquityReport><ReportName>Commitments and Contingencies (Tables)</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>true</HasCustomUnits><IsEmbedReport>false</IsEmbedReport><IsMultiCurrency>false</IsMultiCurrency><ReportType>Sheet</ReportType><RoleURI>http://bsquare.com/role/CommitmentsAndContingenciesTables</RoleURI><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows></InstanceReport>
