<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Version>2.2.0.25</Version><hasSegments>true</hasSegments><hasScenarios>false</hasScenarios><ReportLongName>10801 - Disclosure - Transactions with related parties</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelColumn>false</LabelColumn><CurrencyCode>USD</CurrencyCode><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName>8/1/2010 - 10/31/2010
USD ($)

USD ($) / shares
</KeyName><CurrencySymbol>$</CurrencySymbol><contextRef><ContextID>Duration_8_1_2010_To_10_31_2010</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0000922358</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2010-08-01T00:00:00</PeriodStartDate><PeriodEndDate>2010-10-31T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS><UnitProperty><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></UnitProperty><UnitProperty><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></UnitProperty></UPS><CurrencyCode>USD</CurrencyCode><OriginalCurrencyCode>USD</OriginalCurrencyCode></MCU><CurrencySymbol>$</CurrencySymbol><Labels><Label Id="1" Label="3 Months Ended" /><Label Id="2" Label="Oct. 31, 2010" /></Labels></Column></Columns><Rows><Row><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><Level>0</Level><ElementName>us-gaap_RelatedPartyTransactionsDisclosureTextBlock</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><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>terselabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;div&gt;
&lt;div style="font-family: Times New Roman;"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;b&gt;&lt;font style="font-size: 10pt; font-weight: bold;" class="_mt" size="2"&gt;H.&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font style="font-size: 3pt; font-weight: bold;" class="_mt" size="1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font style="font-size: 10pt; font-weight: bold;" class="_mt" size="2"&gt;Transactions with related parties&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;General partner&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Ferrellgas has no employees and is managed and controlled by its general partner. Pursuant to Ferrellgas' partnership agreements, the general partner is entitled to reimbursement for all direct and indirect expenses incurred or payments it makes on behalf of Ferrellgas and all other necessary or appropriate expenses allocable to Ferrellgas or otherwise reasonably incurred by its general partner in connection with operating Ferrellgas' business. These costs primarily include compensation and benefits paid to employees of the general partner who perform services on Ferrellgas' behalf and are reported in the condensed consolidated statements of earnings as follows:&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="width: 86.66%; border-collapse: collapse; margin-left: 0.5in;" border="0" cellspacing="0" cellpadding="0" width="86%"&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 69.98%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="69%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="2%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: windowtext 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 25.96%; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;" valign="bottom" width="25%" colspan="5"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;b&gt;&lt;font style="font-size: 8pt; font-weight: bold;" class="_mt" size="1"&gt;For&amp;nbsp;the&amp;nbsp;three&amp;nbsp;months&lt;br /&gt;ended&amp;nbsp;October&amp;nbsp;31,&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.16%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="1%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 69.98%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="69%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="2%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: windowtext 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 11.54%; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;" valign="bottom" width="11%" colspan="2"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;b&gt;&lt;font style="font-size: 8pt; font-weight: bold;" class="_mt" size="1"&gt;2010&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="2%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: windowtext 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 11.54%; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;" valign="bottom" width="11%" colspan="2"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;b&gt;&lt;font style="font-size: 8pt; font-weight: bold;" class="_mt" size="1"&gt;2009&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.16%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="1%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 69.98%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="69%"&gt;
&lt;p style="text-indent: -10pt; margin: 0in 0in 0pt 10pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Operating expense&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="2%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 1.3%; padding-right: 0in; background: #cceeff; border-top: medium none; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;$&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 10.24%; padding-right: 0in; background: #cceeff; border-top: windowtext 1pt solid; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="10%"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;50,011&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="2%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 1.3%; padding-right: 0in; background: #cceeff; border-top: medium none; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;$&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 10.24%; padding-right: 0in; background: #cceeff; border-top: windowtext 1pt solid; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="10%"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;53,311&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.16%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 69.98%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="69%"&gt;
&lt;p style="text-indent: -10pt; margin: 0in 0in 0pt 10pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;General and administrative expense&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="2%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 11.54%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="11%" colspan="2"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;6,463&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 2.88%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="2%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 11.54%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="11%" colspan="2"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;6,455&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.16%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="454"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="19"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="8"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="66"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="19"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="8"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="66"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="8"&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;See additional discussions about transactions with the general partner and related parties in Note F &amp;#8212; Partners' capital.&lt;/font&gt;&lt;/p&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;
&lt;div style="font-family: Times New Roman;"&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Board of Directors&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Elizabeth Solberg, a member of the general partner's Board of Directors, serves as the General Manager of Fleishman-Hillard Inc. During the three months ended October&amp;nbsp;31, 2010 and 2009, Ferrellgas paid Fleishman-Hillard Inc. $33 thousand and $42 thousand, respectively, for marketing and communications services.&lt;/font&gt;&lt;/p&gt;&lt;/div&gt; &lt;/div&gt;</NonNumbericText><NonNumericTextHeader /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios></Cell></Cells><OriginalInstanceReportColumns /><Unit>Other</Unit><ElementDataType>us-types:textBlockItemType</ElementDataType><SimpleDataType>string</SimpleDataType><ElementDefenition>This element may be used for the entire related party transactions disclosure as a single block of text. Disclosure may include:  the nature of the relationship(s), a description of the transactions, the amount of the transactions, the effects of any change in the method of establishing the terms of the transaction from the previous period, stated interest rate, expiration date, terms and manner of settlement per the agreement with the related party, and amounts due to or from related parties. If the entity and one or more other entities are under common ownership or management control and this control affects the operating results or financial position, disclosure includes the nature of the control relationship even if there are no transactions between the entities. Disclosure may also include the aggregate amount of current and deferred tax expense for each statement of earnings presented where the entity is a member of a group that files a consolidated tax return, the amount of any tax related balances due to or from affiliates as of the date of each statement of financial position presented, the principal provisions of the method by which the consolidated amount of current and deferred tax expense is allocated to the members of the group and the nature and effect of any changes in that method. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef
 -Publisher SEC
 -Name Regulation S-X (SX)
 -Number 210
 -Section 04
 -Paragraph b
 -Article 3A

Reference 2: http://www.xbrl.org/2003/role/presentationRef
 -Publisher SEC
 -Name Regulation S-X (SX)
 -Number 210
 -Section 08
 -Paragraph k
 -Article 4

Reference 3: http://www.xbrl.org/2003/role/presentationRef
 -Publisher FASB
 -Name Statement of Financial Accounting Standard (FAS)
 -Number 57
 -Paragraph 1-4

</ElementReferences><IsTotalLabel>false</IsTotalLabel><IsEPS>false</IsEPS><Label>Transactions with related parties</Label></Row><Row><Id>3</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><Level>0</Level><ElementName /><ElementPrefix>na</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>na</PeriodType><ShortDefinition>No definition available.</ShortDefinition><IsReportTitle>false</IsReportTitle><IsSegmentTitle>true</IsSegmentTitle><IsSubReportEnd>false</IsSubReportEnd><IsCalendarTitle>false</IsCalendarTitle><IsTuple>false</IsTuple><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>http://www.ferrellgas.com/role/disclosuretransactionswithrelatedparties</PreferredLabelRole><FootnoteIndexer /><Cells><Cell><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><NonNumericTextHeader /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios></Cell></Cells><OriginalInstanceReportColumns><Columns><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelColumn>false</LabelColumn><CurrencyCode>USD</CurrencyCode><FootnoteIndexer /><hasSegments>true</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName>{dei_LegalEntityAxis} : FERRELLGAS, L.P. AND SUBSIDIARIES [Member]
8/1/2010 - 10/31/2010
USD ($)
</KeyName><CurrencySymbol>$</CurrencySymbol><contextRef><ContextID>Duration_8_1_2010_To_10_31_201042</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0000922358</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2010-08-01T00:00:00</PeriodStartDate><PeriodEndDate>2010-10-31T00:00:00</PeriodEndDate><Segments><anyType xsi:type="Segment"><IsDefaultForEntity>false</IsDefaultForEntity><Name /><IsFromEntityGroup>false</IsFromEntityGroup><ValueName>FERRELLGAS, L.P. AND SUBSIDIARIES [Member]</ValueName><ValueType>dei_LegalEntityAxis</ValueType><Namespace>xbrldi</Namespace><Schema>http://xbrl.org/2006/xbrldi</Schema><DimensionInfo><Id>fgp_FerrellgasLPAndSubsidiariesMember</Id><dimensionId>dei_LegalEntityAxis</dimensionId><type>explicitMember</type></DimensionInfo></anyType></Segments><Scenarios /></contextRef><UPS><UnitProperty><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></UnitProperty></UPS><CurrencyCode>USD</CurrencyCode><OriginalCurrencyCode>USD</OriginalCurrencyCode></MCU><CurrencySymbol>$</CurrencySymbol><Labels><Label Id="1" Label="FERRELLGAS, L.P. AND SUBSIDIARIES [Member]" /><Label Id="2" Label="8/1/2010 - 10/31/2010" /></Labels></Columns></OriginalInstanceReportColumns><Unit>Other</Unit><ElementDataType /><SimpleDataType>na</SimpleDataType><ElementDefenition>No definition available.</ElementDefenition><ElementReferences>No authoritative reference available.</ElementReferences><IsTotalLabel>false</IsTotalLabel><IsEPS>false</IsEPS><Label>FERRELLGAS, L.P. AND SUBSIDIARIES [Member]</Label></Row><Row><Id>4</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><Level>0</Level><ElementName>us-gaap_RelatedPartyTransactionsDisclosureTextBlock</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><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>terselabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;div&gt; &lt;div style="font-family: Times New Roman;"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;b&gt;&lt;font style="font-size: 10pt; font-weight: bold;" class="_mt" size="2"&gt;H.&amp;nbsp;&amp;nbsp;&amp;nbsp;Transactions with related parties&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;General partner&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Ferrellgas, L.P. has no employees and is managed and controlled by its general partner. Pursuant to Ferrellgas, L.P.'s partnership agreement, the general partner is entitled to reimbursement for all direct and indirect expenses incurred or payments it makes on behalf of Ferrellgas, L.P., and all other necessary or appropriate expenses allocable to Ferrellgas, L.P. or otherwise reasonably incurred by its general partner in connection with operating Ferrellgas, L.P.'s business. These costs primarily include compensation and benefits paid to employees of the general partner who perform services on Ferrellgas, L.P.'s behalf and are reported in the condensed consolidated statements of earnings as follows:&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="width: 93.34%; border-collapse: collapse; margin-left: 0.5in;" border="0" cellspacing="0" cellpadding="0" width="93%"&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 73.18%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="73%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="3%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: windowtext 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 22.5%; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;" valign="bottom" width="22%" colspan="5"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;b&gt;&lt;font style="font-size: 8pt; font-weight: bold;" class="_mt" size="1"&gt;For&amp;nbsp;the&amp;nbsp;three&amp;nbsp;months&lt;br /&gt;ended&amp;nbsp;October&amp;nbsp;31,&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.08%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="1%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 73.18%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="73%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="3%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: windowtext 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 9.64%; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;" valign="bottom" width="9%" colspan="2"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;b&gt;&lt;font style="font-size: 8pt; font-weight: bold;" class="_mt" size="1"&gt;2010&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="3%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: windowtext 1pt solid; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 9.64%; padding-right: 0in; border-top: medium none; border-right: medium none; padding-top: 0in;" valign="bottom" width="9%" colspan="2"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&lt;b&gt;&lt;font style="font-size: 8pt; font-weight: bold;" class="_mt" size="1"&gt;2009&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.08%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="1%"&gt;
&lt;p style="text-align: center; margin: 0in 0in 0pt;" align="center"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 73.18%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="73%"&gt;
&lt;p style="text-indent: -10pt; margin: 0in 0in 0pt 10pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Operating expense&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="3%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 1.3%; padding-right: 0in; background: #cceeff; border-top: medium none; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;$&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 8.34%; padding-right: 0in; background: #cceeff; border-top: windowtext 1pt solid; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="8%"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;50,011&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="3%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 1.3%; padding-right: 0in; background: #cceeff; border-top: medium none; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;$&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; padding-bottom: 0in; padding-left: 0in; width: 8.34%; padding-right: 0in; background: #cceeff; border-top: windowtext 1pt solid; border-right: medium none; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="8%"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;53,311&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.08%; padding-right: 0in; background: #cceeff; padding-top: 0in;" bgcolor="#cceeff" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 73.18%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="73%"&gt;
&lt;p style="text-indent: -10pt; margin: 0in 0in 0pt 10pt;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;General and administrative expense&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="3%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 9.64%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="9%" colspan="2"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;6,463&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 3.22%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="3%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 9.64%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="9%" colspan="2"&gt;
&lt;p style="text-align: right; margin: 0in 0in 0pt;" align="right"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;6,455&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="padding-bottom: 0in; padding-left: 0in; width: 1.08%; padding-right: 0in; padding-top: 0in;" valign="bottom" width="1%"&gt;
&lt;p style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="511"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="23"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="9"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="58"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="22"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="9"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="58"&gt; &lt;/td&gt;
&lt;td style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none;" width="8"&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;See additional discussions about transactions with the general partner and related parties in Note F &amp;#8212; Partners' capital.&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Board of Directors&lt;/font&gt;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt; &lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;font style="font-size: 10pt;" class="_mt" size="2"&gt;Elizabeth Solberg, a member of the general partner's Board of Directors, serves as the General Manager of Fleishman&amp;#8212;Hillard Inc. During the three months ended October&amp;nbsp;31, 2010 and 2009, Ferrellgas, L.P. paid Fleishman-Hillard Inc. $33 thousand and $42 thousand, respectively for marketing and communications services.&lt;/font&gt;&lt;/p&gt;&lt;/div&gt; &lt;/div&gt;</NonNumbericText><NonNumericTextHeader /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios></Cell></Cells><OriginalInstanceReportColumns /><Unit>Other</Unit><ElementDataType>us-types:textBlockItemType</ElementDataType><SimpleDataType>string</SimpleDataType><ElementDefenition>This element may be used for the entire related party transactions disclosure as a single block of text. Disclosure may include:  the nature of the relationship(s), a description of the transactions, the amount of the transactions, the effects of any change in the method of establishing the terms of the transaction from the previous period, stated interest rate, expiration date, terms and manner of settlement per the agreement with the related party, and amounts due to or from related parties. If the entity and one or more other entities are under common ownership or management control and this control affects the operating results or financial position, disclosure includes the nature of the control relationship even if there are no transactions between the entities. Disclosure may also include the aggregate amount of current and deferred tax expense for each statement of earnings presented where the entity is a member of a group that files a consolidated tax return, the amount of any tax related balances due to or from affiliates as of the date of each statement of financial position presented, the principal provisions of the method by which the consolidated amount of current and deferred tax expense is allocated to the members of the group and the nature and effect of any changes in that method. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef
 -Publisher SEC
 -Name Regulation S-X (SX)
 -Number 210
 -Section 04
 -Paragraph b
 -Article 3A

Reference 2: http://www.xbrl.org/2003/role/presentationRef
 -Publisher SEC
 -Name Regulation S-X (SX)
 -Number 210
 -Section 08
 -Paragraph k
 -Article 4

Reference 3: http://www.xbrl.org/2003/role/presentationRef
 -Publisher FASB
 -Name Statement of Financial Accounting Standard (FAS)
 -Number 57
 -Paragraph 1-4

</ElementReferences><IsTotalLabel>false</IsTotalLabel><IsEPS>false</IsEPS><Label>Transactions with related parties</Label></Row></Rows><Footnotes /><NumberOfCols>1</NumberOfCols><NumberOfRows>3</NumberOfRows><ReportName>Transactions with related parties</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>false</HasCustomUnits><SharesShouldBeRounded>true</SharesShouldBeRounded></InstanceReport>
